Class AggregateSnapshot<ID,​AGGREGATE_IMPL_TYPE>

    • Field Detail

      • aggregateType

        public final dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType
        the name of the aggregate's event stream
      • aggregateId

        public final ID aggregateId
        the identifier for the aggregate instance
      • aggregateImplType

        public final Class<AGGREGATE_IMPL_TYPE> aggregateImplType
        the concrete aggregate implementation type
      • eventOrderOfLastIncludedEvent

        public final dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.types.EventOrder eventOrderOfLastIncludedEvent
        The EventOrder of the last Event that was included in the snapshot
      • aggregateSnapshot

        public final AGGREGATE_IMPL_TYPE aggregateSnapshot
        The aggregate snapshot loaded from the repository - if this is of type BrokenSnapshot then the Aggregate snapshot couldn't be deserialized
    • Constructor Detail

      • AggregateSnapshot

        public AggregateSnapshot​(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType,
                                 ID aggregateId,
                                 Class<AGGREGATE_IMPL_TYPE> aggregateImplType,
                                 AGGREGATE_IMPL_TYPE aggregateSnapshot,
                                 dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.types.EventOrder eventOrderOfLastIncludedEvent)
        Parameters:
        aggregateType - the name of the aggregate's event stream
        aggregateId - the identifier for the aggregate instance
        aggregateImplType - the concrete aggregate implementation type
        aggregateSnapshot - The aggregate snapshot loaded from the repository (optional as we can load snapshots without payload)
        eventOrderOfLastIncludedEvent - The EventOrder of the last Event that was included in the snapshot