T - The type of payload contained in this Messagepublic interface DomainEventMessage<T> extends EventMessage<T>
| Modifier and Type | Method and Description |
|---|---|
DomainEventMessage<T> |
andMetaData(Map<String,?> metaData)
Returns a copy of this DomainEventMessage with its MetaData merged with the given
metaData. |
String |
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.
|
String |
getType()
Returns the type of the Aggregate that generated this DomainEvent.
|
DomainEventMessage<T> |
withMetaData(Map<String,?> metaData)
Returns a copy of this DomainEventMessage with the given
metaData. |
getIdentifier, getTimestampgetMetaData, getPayload, getPayloadType, serializeMetaData, serializePayloadlong getSequenceNumber()
String getAggregateIdentifier()
String getType()
DomainEventMessage<T> withMetaData(@Nonnull 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 MessageDomainEventMessage<T> andMetaData(@Nonnull 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 withCopyright © 2010–2023. All rights reserved.