Package org.axonframework.eventhandling
Class TrackedDomainEventData<T>
java.lang.Object
org.axonframework.eventhandling.TrackedDomainEventData<T>
- Type Parameters:
T- The content type of the serialized data
- All Implemented Interfaces:
DomainEventData<T>,EventData<T>,TrackedEventData<T>
public class TrackedDomainEventData<T>
extends Object
implements TrackedEventData<T>, DomainEventData<T>
Specialization of the DomainEventData class that includes the Token representing the position of this event in
a stream.
-
Constructor Summary
ConstructorsConstructorDescriptionTrackedDomainEventData(TrackingToken trackingToken, DomainEventData<T> domainEventEntry) Initialize the TrackingDomainEventData with giventrackingTokenanddomainEventEntry. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Identifier of the Aggregate to which the Event was applied.Returns the identifier of the serialized event.Returns the serialized data of the MetaData of the serialized Event.Returns the serialized data of the Event Message's payload.longReturns the sequence number of the event in the aggregate.Returns the timestamp at which the event was first created.getType()Returns the type identifier of the aggregate.Returns theTrackingTokenof the serialized event.
-
Constructor Details
-
TrackedDomainEventData
Initialize the TrackingDomainEventData with giventrackingTokenanddomainEventEntry.- Parameters:
trackingToken- The token representing this event's position in a streamdomainEventEntry- The entry containing the event data itself
-
-
Method Details
-
trackingToken
Description copied from interface:TrackedEventDataReturns theTrackingTokenof the serialized event.- Specified by:
trackingTokenin interfaceTrackedEventData<T>- Returns:
- the tracking token of the serialized event
-
getEventIdentifier
Description copied from interface:EventDataReturns the identifier of the serialized event.- Specified by:
getEventIdentifierin interfaceEventData<T>- Returns:
- the identifier of the serialized event
-
getTimestamp
Description copied from interface:EventDataReturns the timestamp at which the event was first created.- Specified by:
getTimestampin interfaceEventData<T>- Returns:
- the timestamp at which the event was first created
-
getMetaData
Description copied from interface:EventDataReturns the serialized data of the MetaData of the serialized Event.- Specified by:
getMetaDatain interfaceEventData<T>- Returns:
- the serialized data of the MetaData of the serialized Event
-
getPayload
Description copied from interface:EventDataReturns the serialized data of the Event Message's payload.- Specified by:
getPayloadin interfaceEventData<T>- Returns:
- the serialized data of the Event Message's payload
-
getType
Description copied from interface:DomainEventDataReturns the type identifier of the aggregate.- Specified by:
getTypein interfaceDomainEventData<T>- Returns:
- the type identifier of the aggregate.
-
getAggregateIdentifier
Description copied from interface:DomainEventDataReturns the Identifier of the Aggregate to which the Event was applied.- Specified by:
getAggregateIdentifierin interfaceDomainEventData<T>- Returns:
- the Identifier of the Aggregate to which the Event was applied
-
getSequenceNumber
public long getSequenceNumber()Description copied from interface:DomainEventDataReturns the sequence number of the event in the aggregate.- Specified by:
getSequenceNumberin interfaceDomainEventData<T>- Returns:
- the sequence number of the event in the aggregate
-