public abstract class ReplyMessage extends Object implements Serializable
CommandBusConnector
for replying on received
commands from other nodes.Modifier and Type | Field and Description |
---|---|
protected String |
commandIdentifier |
protected String |
exceptionRevision |
protected String |
exceptionType |
protected String |
payloadRevision |
protected String |
payloadType |
protected byte[] |
serializedException |
protected byte[] |
serializedMetaData |
protected byte[] |
serializedPayload |
Modifier | Constructor and Description |
---|---|
protected |
ReplyMessage()
Default constructor required for de-/serialization of extending classes.
|
|
ReplyMessage(String commandIdentifier,
CommandResultMessage<?> commandResultMessage,
Serializer serializer)
Initializes a ReplyMessage containing a reply to the command with given {commandIdentifier} and given
commandResultMessage . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCommandIdentifier()
Returns the identifier of the command for which this message is a reply.
|
CommandResultMessage<?> |
getCommandResultMessage(Serializer serializer)
Returns a
CommandResultMessage containg the result of command processing. |
String |
getExceptionRevision()
Returns the exception revision of the serialized reply message.
|
String |
getExceptionType()
Returns the exception type of the serialized reply message.
|
String |
getPayloadRevision()
Returns the payload revision of the serialized reply message.
|
String |
getPayloadType()
Returns the payload type of the serialized reply message.
|
byte[] |
getSerializedException()
Returns the serialized exception of the serialized reply message.
|
byte[] |
getSerializedMetaData()
Returns the serialized meta data of the serialized reply message.
|
byte[] |
getSerializedPayload()
Returns the serialized payload of the serialized reply message.
|
int |
hashCode() |
String |
toString() |
protected String commandIdentifier
protected byte[] serializedMetaData
protected String payloadType
protected String payloadRevision
protected byte[] serializedPayload
protected String exceptionType
protected String exceptionRevision
protected byte[] serializedException
protected ReplyMessage()
public ReplyMessage(String commandIdentifier, CommandResultMessage<?> commandResultMessage, Serializer serializer)
commandResultMessage
.commandIdentifier
- the identifier of the command to which the message is a replycommandResultMessage
- the result message of command processserializer
- the serializer to serialize the message contents withpublic CommandResultMessage<?> getCommandResultMessage(Serializer serializer)
CommandResultMessage
containg the result of command processing.serializer
- the serializer to deserialize the result withCommandResultMessage
containing the return value of command processingpublic String getCommandIdentifier()
String
public String getPayloadType()
String
public String getPayloadRevision()
String
public byte[] getSerializedPayload()
byte[]
public String getExceptionType()
String
public String getExceptionRevision()
String
public byte[] getSerializedException()
byte[]
public byte[] getSerializedMetaData()
byte[]
Copyright © 2010–2019. All rights reserved.