DelaySnapshotRepository

class DelaySnapshotRepository(delaySupplier: () -> Duration = { Duration.ofMillis(5) }, val delegate: SnapshotRepository = InMemorySnapshotRepository()) : SnapshotRepository, Decorator<SnapshotRepository>

Constructors

Link copied to clipboard
constructor(delaySupplier: () -> Duration = { Duration.ofMillis(5) }, delegate: SnapshotRepository = InMemorySnapshotRepository())

Properties

Link copied to clipboard
open override val delegate: SnapshotRepository

Functions

Link copied to clipboard
open fun getVersion(aggregateId: AggregateId): Mono<Int>
Link copied to clipboard
open override fun <S : Any> load(aggregateId: AggregateId): Mono<Snapshot<S>>
Link copied to clipboard
open override fun <S : Any> save(snapshot: Snapshot<S>): Mono<Void>
Link copied to clipboard
open override fun scanAggregateId(namedAggregate: NamedAggregate, afterId: String, limit: Int): Flux<AggregateId>