M - defines the type of messageA - defines the type of ActionEventpublic interface Message<A,M>
extends java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
Message<A,M> |
cloneMessage()
Clone message and containing event.
|
M |
getMessageBody()
Get the message payload.
|
A |
getSourceEvent()
Get source of this message event.
|
java.lang.String |
getSourceId()
Get the caller id.
|
java.lang.String |
getTargetId()
Returns message target id.
|
<T> T |
getTypedMessageBody(java.lang.Class<T> clazz)
Returns a typed message, if applicable.
|
<T> boolean |
isMessageBodyTypeOf(java.lang.Class<T> clazz)
Checks if message is type of a given class.
|
boolean |
messageBodyEquals(java.lang.Object object)
Check if message equals given input.
|
M getMessageBody()
java.lang.String getSourceId()
A getSourceEvent()
Message<A,M> cloneMessage()
java.lang.String getTargetId()
<T> boolean isMessageBodyTypeOf(java.lang.Class<T> clazz)
clazz, - class to check if message is equal to, - the generic type<T> T getTypedMessageBody(java.lang.Class<T> clazz)
T - , the generic typeclazz, - the class to cast the messageboolean messageBodyEquals(java.lang.Object object)
object, - an object to check for equal