public abstract class Message<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
T |
body
The body of the message
|
java.lang.String |
replyAddress
The reply address (if any)
|
Modifier | Constructor and Description |
---|---|
protected |
Message() |
Modifier and Type | Method and Description |
---|---|
void |
reply()
Same as
reply(T message) but with an empty body |
void |
reply(T message)
Reply to this message.
|
abstract void |
reply(T message,
Handler<Message<T>> replyHandler)
The same as
reply(T message) but you can specify handler for the reply - i.e. |
public T body
public java.lang.String replyAddress
public void reply()
reply(T message)
but with an empty bodypublic void reply(T message)