T
- The type of payload contained in this Messagepublic interface EventMessage<T> extends Message<T>
DomainEventMessage
Modifier and Type | Method and Description |
---|---|
EventMessage<T> |
andMetaData(Map<String,?> metaData)
Returns a copy of this EventMessage with it MetaData merged with the given
metaData . |
String |
getIdentifier()
Returns the identifier of this event.
|
Instant |
getTimestamp()
Returns the timestamp of this event.
|
EventMessage<T> |
withMetaData(Map<String,?> metaData)
Returns a copy of this EventMessage with the given
metaData . |
getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayload
String getIdentifier()
getIdentifier
in interface Message<T>
Instant getTimestamp()
EventMessage<T> withMetaData(@Nonnull Map<String,?> metaData)
metaData
. The payload, Timestamp
and Identifier
remain unchanged.withMetaData
in interface Message<T>
metaData
- The new MetaData for the MessageEventMessage<T> andMetaData(@Nonnull Map<String,?> metaData)
metaData
. The payload, Timestamp
and Identifier
remain unchanged.andMetaData
in interface Message<T>
metaData
- The MetaData to merge withCopyright © 2010–2024. All rights reserved.