Interface DomainEventData<T>

Type Parameters:
T - The content type of the serialized data
All Superinterfaces:
EventData<T>
All Known Implementing Classes:
AbstractDomainEventEntry, AbstractSequencedDomainEventEntry, AbstractSnapshotEventEntry, DomainEventEntry, GenericDomainEventEntry, GrpcBackedDomainEventData, SnapshotEventEntry, TrackedDomainEventData

public interface DomainEventData<T> extends EventData<T>
Interface describing the properties of serialized Domain Event Messages. Event Store implementations should have their storage entries implement this interface.
Since:
2.0
Author:
Allard Buijze
  • Method Details

    • getType

      String getType()
      Returns the type identifier of the aggregate.
      Returns:
      the type identifier of the aggregate.
    • getAggregateIdentifier

      String getAggregateIdentifier()
      Returns the Identifier of the Aggregate to which the Event was applied.
      Returns:
      the Identifier of the Aggregate to which the Event was applied
    • getSequenceNumber

      long getSequenceNumber()
      Returns the sequence number of the event in the aggregate.
      Returns:
      the sequence number of the event in the aggregate