|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of payload contained in this Messagepublic interface DomainEventMessage<T>
Represents a Message that wraps a DomainEvent and an Event representing an important change in the Domain. In contrast to a regular EventMessage, a DomainEventMessages contains the identifier of the Aggregate that reported it. The DomainEventMessage's sequence number allows Messages to be placed in their order of generation.
Method Summary | |
---|---|
DomainEventMessage<T> |
andMetaData(Map<String,?> metaData)
Returns a copy of this DomainEventMessage with its MetaData merged with the given metaData . |
Object |
getAggregateIdentifier()
Returns the identifier of the Aggregate that generated this DomainEvent. |
long |
getSequenceNumber()
Returns the sequence number that allows DomainEvents originating from the same Aggregate to be placed in the order of generation. |
DomainEventMessage<T> |
withMetaData(Map<String,?> metaData)
Returns a copy of this DomainEventMessage with the given metaData . |
Methods inherited from interface org.axonframework.domain.EventMessage |
---|
getIdentifier, getTimestamp |
Methods inherited from interface org.axonframework.domain.Message |
---|
getMetaData, getPayload, getPayloadType |
Method Detail |
---|
long getSequenceNumber()
Object getAggregateIdentifier()
DomainEventMessage<T> withMetaData(Map<String,?> metaData)
metaData
. The payload, Timestamp
and EventIdentifier
, as well as the Aggregate Identifier
and Sequence Number
remain unchanged.
withMetaData
in interface EventMessage<T>
withMetaData
in interface Message<T>
metaData
- The new MetaData for the Message
DomainEventMessage<T> andMetaData(Map<String,?> metaData)
metaData
. The
payload, Timestamp
and EventIdentifier
, as well as the
Aggregate Identifier
and Sequence Number
remain
unchanged.
andMetaData
in interface EventMessage<T>
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 |