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, serializePayloadgetIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaDataCommandResultMessage<R> withMetaData(@Nonnull Map<String,?> metaData)
MessagemetaData. 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)
MessagemetaData. The payload remains
unchanged.andMetaData in interface Message<R>andMetaData in interface ResultMessage<R>metaData - The MetaData to merge withCopyright © 2010–2023. All rights reserved.