Class AggregateSnapshot<ID,AGGREGATE_IMPL_TYPE>
java.lang.Object
dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot<ID,AGGREGATE_IMPL_TYPE>
- Type Parameters:
ID- the aggregate ID typeAGGREGATE_IMPL_TYPE- the concrete aggregate implementation type
Aggregate snapshot loaded using
AggregateSnapshotRepository.loadSnapshot(AggregateType, Object, Class)-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IDthe identifier for the aggregate instancefinal Class<AGGREGATE_IMPL_TYPE>the concrete aggregate implementation typefinal AGGREGATE_IMPL_TYPEThe aggregate snapshot loaded from the repository - if this is of typeBrokenSnapshotthen the Aggregate snapshot couldn't be deserializedfinal AggregateTypethe name of the aggregate's event streamfinal EventOrderTheEventOrderof the last Event that was included in the snapshot -
Constructor Summary
ConstructorsConstructorDescriptionAggregateSnapshot(AggregateType aggregateType, ID aggregateId, Class<AGGREGATE_IMPL_TYPE> aggregateImplType, AGGREGATE_IMPL_TYPE aggregateSnapshot, EventOrder eventOrderOfLastIncludedEvent) -
Method Summary
-
Field Details
-
aggregateType
the name of the aggregate's event stream -
aggregateId
the identifier for the aggregate instance -
aggregateImplType
the concrete aggregate implementation type -
eventOrderOfLastIncludedEvent
TheEventOrderof the last Event that was included in the snapshot -
aggregateSnapshot
The aggregate snapshot loaded from the repository - if this is of typeBrokenSnapshotthen the Aggregate snapshot couldn't be deserialized
-
-
Constructor Details
-
AggregateSnapshot
public AggregateSnapshot(AggregateType aggregateType, ID aggregateId, Class<AGGREGATE_IMPL_TYPE> aggregateImplType, AGGREGATE_IMPL_TYPE aggregateSnapshot, EventOrder eventOrderOfLastIncludedEvent) - Parameters:
aggregateType- the name of the aggregate's event streamaggregateId- the identifier for the aggregate instanceaggregateImplType- the concrete aggregate implementation typeaggregateSnapshot- The aggregate snapshot loaded from the repository (optional as we can load snapshots without payload)eventOrderOfLastIncludedEvent- TheEventOrderof the last Event that was included in the snapshot
-
-
Method Details