public class SpringHttpDispatchMessage<C> extends DispatchMessage implements Serializable
commandIdentifier, commandName, expectReply, payloadRevision, payloadType, serializedMetaData, serializedPayload
Constructor and Description |
---|
SpringHttpDispatchMessage(CommandMessage<?> commandMessage,
Serializer serializer,
boolean expectReply)
Initialize a SpringHttpDispatchMessage for the given
commandMessage , to be serialized using given
serializer . |
Modifier and Type | Method and Description |
---|---|
CommandMessage<C> |
getCommandMessage(Serializer serializer)
Returns the CommandMessage wrapped in this Message.
|
equals, getCommandIdentifier, getCommandName, getPayloadRevision, getPayloadType, getSerializedMetaData, getSerializedPayload, hashCode, isExpectReply, toString
public SpringHttpDispatchMessage(CommandMessage<?> commandMessage, Serializer serializer, boolean expectReply)
commandMessage
, to be serialized using given
serializer
. 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<C> getCommandMessage(Serializer serializer)
DispatchMessage
getCommandMessage
in class DispatchMessage
serializer
- The serializer to deserialize message contents withCopyright © 2010–2017. All rights reserved.