SnapshotMaintenanceOperations
class SnapshotMaintenanceOperations<STATE : AggregateState, EVENT>(aggregate: AggregateStateDefinition<STATE, EVENT>, stateSchemaVersion: AggregateStateSchemaVersion, eventStore: AggregateEventStoreRead<EVENT>, snapshotStore: SnapshotStore<STATE>, retention: SnapshotRetentionPolicy = SnapshotRetentionPolicy.MaxCount(1), clock: Clock = Clock.System)(source)
Explicit operator-facing rebuild, delete, and verification operations for snapshots.
Constructors
Link copied to clipboard
constructor(aggregate: AggregateStateDefinition<STATE, EVENT>, stateSchemaVersion: AggregateStateSchemaVersion, eventStore: AggregateEventStoreRead<EVENT>, snapshotStore: SnapshotStore<STATE>, retention: SnapshotRetentionPolicy = SnapshotRetentionPolicy.MaxCount(1), clock: Clock = Clock.System)
constructor(aggregate: AggregateStateDefinition<STATE, EVENT>, stateSchema: AggregateStateSchema<STATE, *>, eventStore: AggregateEventStoreRead<EVENT>, snapshotStore: SnapshotStore<STATE>, retention: SnapshotRetentionPolicy = SnapshotRetentionPolicy.MaxCount(1), clock: Clock = Clock.System)