MongoSnapshotStore

class MongoSnapshotStore(database: MongoDatabase, val batchOptions: BatchOptions? = null, metrics: WowMetrics = WowMetrics.NONE) : SnapshotStore

Constructors

Link copied to clipboard
constructor(database: MongoDatabase, batchOptions: BatchOptions? = null, metrics: WowMetrics = WowMetrics.NONE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard

The batch writer of this store's snapshots, flushed by the runtime after its dispatchers stop (me.ahoo.wow.runtime.RuntimeResources); RuntimeResource.NONE when the store writes directly.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override 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>