public class SpringHttpReplyMessage<R> extends org.axonframework.commandhandling.distributed.ReplyMessage implements Serializable
| Constructor and Description |
|---|
SpringHttpReplyMessage(String commandIdentifier,
org.axonframework.commandhandling.CommandResultMessage<R> commandResultMessage,
org.axonframework.serialization.Serializer serializer)
Initializes a SpringHttpReplyMessage containing a reply to the command with given {commandIdentifier} and given
commandResultMessage. |
| Modifier and Type | Method and Description |
|---|---|
org.axonframework.commandhandling.CommandResultMessage<R> |
getCommandResultMessage(org.axonframework.serialization.Serializer serializer) |
public SpringHttpReplyMessage(String commandIdentifier, org.axonframework.commandhandling.CommandResultMessage<R> commandResultMessage, org.axonframework.serialization.Serializer serializer)
commandResultMessage.commandIdentifier - the identifier of the command to which the message is a replycommandResultMessage - the return value of command process
the given commandResultMessage is ignored.serializer - the serializer to serialize the message contents withpublic org.axonframework.commandhandling.CommandResultMessage<R> getCommandResultMessage(org.axonframework.serialization.Serializer serializer)
getCommandResultMessage in class org.axonframework.commandhandling.distributed.ReplyMessageCopyright © 2010–2023. All rights reserved.