Interface EventData<T>

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

public interface EventData<T>
Interface describing the properties of serialized Event Messages. Event Storage Engine implementations should have their storage entries implement this interface.
Author:
Rene de Waele
  • Method Details

    • getEventIdentifier

      String getEventIdentifier()
      Returns the identifier of the serialized event.
      Returns:
      the identifier of the serialized event
    • getTimestamp

      Instant getTimestamp()
      Returns the timestamp at which the event was first created.
      Returns:
      the timestamp at which the event was first created
    • getMetaData

      SerializedObject<T> getMetaData()
      Returns the serialized data of the MetaData of the serialized Event.
      Returns:
      the serialized data of the MetaData of the serialized Event
    • getPayload

      SerializedObject<T> getPayload()
      Returns the serialized data of the Event Message's payload.
      Returns:
      the serialized data of the Event Message's payload