SnapshotStoreInMemory
class SnapshotStoreInMemory<STATE : AggregateState, STATE_PERSISTED : Any>(aggregateType: String, stateSchema: AggregateStateSchema<STATE, STATE_PERSISTED>, val storage: InMemorySnapshotStorage = InMemorySnapshotStorage()) : SnapshotStore<STATE> (source)
Constructors
Link copied to clipboard
constructor(aggregateType: String, stateSchema: AggregateStateSchema<STATE, STATE_PERSISTED>, storage: InMemorySnapshotStorage = InMemorySnapshotStorage())
Functions
Link copied to clipboard
open suspend override fun delete(aggregateId: String, aggregateStateSchemaVersion: AggregateStateSchemaVersion)
Deletes every retained snapshot for one aggregate and aggregateStateSchemaVersion.
Link copied to clipboard
Deletes every snapshot for this store's aggregate type across all schema versions.
Deletes every snapshot for this store's type and aggregateStateSchemaVersion.
Link copied to clipboard
Loads the newest compatible snapshot strictly before versionExclusive.