public interface IEventbase extends IElement
Modifier and Type | Method and Description |
---|---|
IInternalEvent |
createInternalEvent(java.lang.String type)
Create a new intenal event.
|
<T> IMessageEvent<T> |
createMessageEvent(java.lang.String type)
Create a new message event.
|
<T> IMessageEvent<T> |
createReply(IMessageEvent<T> event,
java.lang.String type)
Create a reply to a message event.
|
void |
dispatchInternalEvent(IInternalEvent event)
Dispatch an event.
|
IFuture<java.lang.Void> |
sendMessage(IMessageEvent<?> me)
Send a message after some delay.
|
getModelElement
IFuture<java.lang.Void> sendMessage(IMessageEvent<?> me)
me
- The message event.void dispatchInternalEvent(IInternalEvent event)
event
- The event.<T> IMessageEvent<T> createMessageEvent(java.lang.String type)
<T> IMessageEvent<T> createReply(IMessageEvent<T> event, java.lang.String type)
event
- The received message event.msgeventtype
- The reply message event type.IInternalEvent createInternalEvent(java.lang.String type)