Class GenericDomainEventEntry<T>

All Implemented Interfaces:
DomainEventData<T>, EventData<T>

public class GenericDomainEventEntry<T> extends AbstractDomainEventEntry<T>
Generic implementation of a serialized domain event entry. This implementation can be used by Event Storage Engine implementations to reconstruct an event or snapshot from the underlying storage for example.
Author:
Rene de Waele
  • Constructor Details

    • GenericDomainEventEntry

      public GenericDomainEventEntry(String type, String aggregateIdentifier, long sequenceNumber, String eventIdentifier, Object timestamp, String payloadType, String payloadRevision, T payload, T metaData)
      Reconstruct an event entry from a stored object.
      Parameters:
      type - The type of aggregate that published this event
      aggregateIdentifier - The identifier of the aggregate that published this event
      sequenceNumber - The sequence number of the event in the aggregate
      eventIdentifier - The identifier of the event
      timestamp - The time at which the event was originally created
      payloadType - The fully qualified class name or alias of the event payload
      payloadRevision - The revision of the event payload
      payload - The serialized payload
      metaData - The serialized metadata