|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of payload contained in the messagepublic interface CommandMessage<T>
Represents a Message carrying a command as its payload. These messages carry an intention to change application state.
Method Summary | |
---|---|
CommandMessage<T> |
andMetaData(Map<String,?> metaData)
Returns a copy of this CommandMessage with it MetaData merged with the given metaData . |
String |
getCommandName()
Returns the name of the command to execute. |
CommandMessage<T> |
withMetaData(Map<String,?> metaData)
Returns a copy of this CommandMessage with the given metaData . |
Methods inherited from interface org.axonframework.domain.Message |
---|
getIdentifier, getMetaData, getPayload, getPayloadType |
Method Detail |
---|
String getCommandName()
CommandMessage<T> withMetaData(Map<String,?> metaData)
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<T>
metaData
- The new MetaData for the Message
CommandMessage<T> andMetaData(Map<String,?> metaData)
metaData
. The payload
remains unchanged.
andMetaData
in interface Message<T>
metaData
- The MetaData to merge with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |