public abstract class DispatchMessage extends Object
CommandBusConnector upon dispatching a command
 to other nodes.| Modifier and Type | Field and Description | 
|---|---|
protected String | 
commandIdentifier  | 
protected String | 
commandName  | 
protected boolean | 
expectReply  | 
protected String | 
payloadRevision  | 
protected String | 
payloadType  | 
protected byte[] | 
serializedMetaData  | 
protected byte[] | 
serializedPayload  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
DispatchMessage()
Default constructor required for de-/serialization of extending classes. 
 | 
protected  | 
DispatchMessage(CommandMessage<?> commandMessage,
               Serializer serializer,
               boolean expectReply)
Initialized a DispatchMessage for the given  
commandMessage, which uses the given
 serializer to deserialize its contents. | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
String | 
getCommandIdentifier()
Returns the identifier of the command carried by this instance. 
 | 
CommandMessage<?> | 
getCommandMessage(Serializer serializer)
Returns the CommandMessage wrapped in this Message. 
 | 
String | 
getCommandName()
Returns the command name of the command carried by this instance. 
 | 
String | 
getPayloadRevision()
Returns the payload revision of the serialized payload of the command carried by this instance. 
 | 
String | 
getPayloadType()
Returns the payload type of the serialized payload of the command carried by this instance. 
 | 
byte[] | 
getSerializedMetaData()
Returns the serialized metadata of the command carried by this instance. 
 | 
byte[] | 
getSerializedPayload()
Returns the serialized payload of the command carried by this instance. 
 | 
int | 
hashCode()  | 
boolean | 
isExpectReply()
Indicates whether the sender of this message requests a reply. 
 | 
String | 
toString()  | 
protected String commandIdentifier
protected byte[] serializedMetaData
protected String payloadType
protected String payloadRevision
protected byte[] serializedPayload
protected String commandName
protected boolean expectReply
protected DispatchMessage()
protected DispatchMessage(CommandMessage<?> commandMessage, Serializer serializer, boolean expectReply)
commandMessage, which uses the given
 serializer to deserialize its contents.
 expectReply indicates whether the sender will be expecting a reply.commandMessage - The message to send to the remote segmentserializer - The serialize to serialize the message payload and metadata withexpectReply - whether or not the sender is waiting for a reply.public CommandMessage<?> getCommandMessage(Serializer serializer)
serializer - The serializer to deserialize message contents withpublic String getCommandIdentifier()
Stringpublic byte[] getSerializedMetaData()
byte[]public String getPayloadType()
Stringpublic String getPayloadRevision()
Stringpublic byte[] getSerializedPayload()
byte[]public String getCommandName()
Stringpublic boolean isExpectReply()
true if a reply is expected, otherwise false.Copyright © 2010–2018. All rights reserved.