public class ClusterMessage extends Object
| Constructor and Description |
|---|
ClusterMessage(NodeId sender,
MessageSubject subject,
byte[] payload)
Creates a cluster message.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
payload()
Returns the message payload.
|
void |
respond(byte[] data)
Sends a response to the sender.
|
NodeId |
sender()
Returns the id of the controller sending this message.
|
MessageSubject |
subject()
Returns the message subject indicator.
|
String |
toString() |
public ClusterMessage(NodeId sender, MessageSubject subject, byte[] payload)
sender - message sendersubject - message subjectpayload - message payloadpublic NodeId sender()
public MessageSubject subject()
public byte[] payload()
public void respond(byte[] data)
throws IOException
data - payload response.IOException - when I/O exception of some sort has occurredCopyright © 2015. All rights reserved.