T
- The content type of the serialized datapublic class TrackedDomainEventData<T> extends Object implements TrackedEventData<T>, DomainEventData<T>
Constructor and Description |
---|
TrackedDomainEventData(TrackingToken trackingToken,
DomainEventData<T> domainEventEntry)
Initialize the TrackingDomainEventData with given
trackingToken and domainEventEntry . |
Modifier and Type | Method and Description |
---|---|
String |
getAggregateIdentifier()
Returns the Identifier of the Aggregate to which the Event was applied.
|
String |
getEventIdentifier()
Returns the identifier of the serialized event.
|
SerializedObject<T> |
getMetaData()
Returns the serialized data of the MetaData of the serialized Event.
|
SerializedObject<T> |
getPayload()
Returns the serialized data of the Event Message's payload.
|
long |
getSequenceNumber()
Returns the sequence number of the event in the aggregate.
|
Instant |
getTimestamp()
Returns the timestamp at which the event was first created.
|
String |
getType()
Returns the type identifier of the aggregate.
|
TrackingToken |
trackingToken()
Returns the
TrackingToken of the serialized event. |
public TrackedDomainEventData(TrackingToken trackingToken, DomainEventData<T> domainEventEntry)
trackingToken
and domainEventEntry
.trackingToken
- The token representing this event's position in a streamdomainEventEntry
- The entry containing the event data itselfpublic TrackingToken trackingToken()
TrackedEventData
TrackingToken
of the serialized event.trackingToken
in interface TrackedEventData<T>
public String getEventIdentifier()
EventData
getEventIdentifier
in interface EventData<T>
public Instant getTimestamp()
EventData
getTimestamp
in interface EventData<T>
public SerializedObject<T> getMetaData()
EventData
getMetaData
in interface EventData<T>
public SerializedObject<T> getPayload()
EventData
getPayload
in interface EventData<T>
public String getType()
DomainEventData
getType
in interface DomainEventData<T>
public String getAggregateIdentifier()
DomainEventData
getAggregateIdentifier
in interface DomainEventData<T>
public long getSequenceNumber()
DomainEventData
getSequenceNumber
in interface DomainEventData<T>
Copyright © 2010–2024. All rights reserved.