Interface CommandResultMessage<R>
- Type Parameters:
R- The type of payload contained in this Message
- All Superinterfaces:
Message<R>,ResultMessage<R>,Serializable
- All Known Implementing Classes:
GenericCommandResultMessage
Message that represents a result from handling a
CommandMessage.- Since:
- 4.0
- Author:
- Milan Savic
-
Method Summary
Modifier and TypeMethodDescriptionandMetaData(Map<String, ?> metaData) Returns a copy of this Message with it MetaData merged with the givenmetaData.withMetaData(Map<String, ?> metaData) Returns a copy of this Message with the givenmetaData.Methods inherited from interface org.axonframework.messaging.Message
getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaDataMethods inherited from interface org.axonframework.messaging.ResultMessage
exceptionDetails, exceptionResult, isExceptional, optionalExceptionResult, serializeExceptionResult, serializePayload
-
Method Details
-
withMetaData
Description copied from interface:MessageReturns a copy of this Message with the givenmetaData. The payload remains unchanged. While the implementation returned may be different than the implementation ofthis, implementations must take special care in returning the same type of Message (e.g. EventMessage, DomainEventMessage) to prevent errors further downstream.- Specified by:
withMetaDatain interfaceMessage<R>- Specified by:
withMetaDatain interfaceResultMessage<R>- Parameters:
metaData- The new MetaData for the Message- Returns:
- a copy of this message with the given MetaData
-
andMetaData
Description copied from interface:MessageReturns a copy of this Message with it MetaData merged with the givenmetaData. The payload remains unchanged.- Specified by:
andMetaDatain interfaceMessage<R>- Specified by:
andMetaDatain interfaceResultMessage<R>- Parameters:
metaData- The MetaData to merge with- Returns:
- a copy of this message with the given MetaData
-