InMemorySnapshotRepository
In-memory implementation of SnapshotRepository for testing and development. Stores snapshots as JSON strings in a thread-safe map.
Functions
Link copied to clipboard
Gets the version of the latest snapshot for the specified aggregate. Returns UNINITIALIZED_VERSION if no snapshot exists.
Link copied to clipboard
Wraps a SnapshotRepository with metrics collection capabilities. Returns a MetricSnapshotRepository that collects metrics on snapshot storage operations.
Link copied to clipboard
open override fun scanAggregateId(namedAggregate: NamedAggregate, afterId: String, limit: Int): Flux<AggregateId>
Scans aggregate IDs from the in-memory map, sorted and filtered by afterId and limit.