R
- The type of payload contained in this Messagepublic interface CommandResultMessage<R> extends ResultMessage<R>
CommandMessage
.Modifier and Type | Method and Description |
---|---|
CommandResultMessage<R> |
andMetaData(Map<String,?> metaData)
Returns a copy of this Message with it MetaData merged with the given
metaData . |
CommandResultMessage<R> |
withMetaData(Map<String,?> metaData)
Returns a copy of this Message with the given
metaData . |
exceptionDetails, exceptionResult, isExceptional, optionalExceptionResult, serializeExceptionResult, serializePayload
getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData
CommandResultMessage<R> withMetaData(@Nonnull Map<String,?> metaData)
Message
metaData
. The payload remains unchanged.
While the implementation returned may be different than the implementation of this
, implementations must
take special care in returning the same type of Message (e.g. EventMessage, DomainEventMessage) to prevent errors
further downstream.withMetaData
in interface Message<R>
withMetaData
in interface ResultMessage<R>
metaData
- The new MetaData for the MessageCommandResultMessage<R> andMetaData(@Nonnull Map<String,?> metaData)
Message
metaData
. The payload remains
unchanged.andMetaData
in interface Message<R>
andMetaData
in interface ResultMessage<R>
metaData
- The MetaData to merge withCopyright © 2010–2024. All rights reserved.