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