Package dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
package dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
ClassDescriptionStrategy for when an aggregate snapshot should be addedAggregateSnapshot<ID,
AGGREGATE_IMPL_TYPE> Aggregate snapshot loaded usingAggregateSnapshotRepository.loadSnapshot(AggregateType, Object, Class)Strategy for which historic aggregate snapshots (i.e.Strategy that deletes any historic aggregate snapshots when a new snapshot is persistedStrategy that keeps all or a specific number of historic aggregate snapshotsRepository storing and updating Aggregate instance snapshotsAggregateSnapshot.aggregateSnapshotvalue that's returned fromAggregateSnapshotRepositoryin case the Aggregate snapshot couldn't be deserializedDelegatingAggregateSnapshotRepositorywhich directly delegates all operations to the provideddelegateRepository, except forAggregateSnapshotRepository.aggregateUpdated(Object, AggregateEventStream),AggregateSnapshotRepository.deleteSnapshots(AggregateType, Object, Class, List), which are performed asynchronously in the background.
This ensures that expensive update/clean-up for aggregate snapshots in the database don't affect aggregate persistence performance.