ElasticsearchSnapshotStore

class ElasticsearchSnapshotStore(elasticsearchClient: ReactiveElasticsearchClient, val batchOptions: BatchOptions? = null, refreshPolicy: Refresh = Refresh.True, metrics: WowMetrics = WowMetrics.NONE, indexNaming: ElasticsearchIndexNaming) : SnapshotStore

Constructors

Link copied to clipboard
constructor(elasticsearchClient: ReactiveElasticsearchClient, batchOptions: BatchOptions? = null, refreshPolicy: Refresh = Refresh.True, metrics: WowMetrics = WowMetrics.NONE, indexNaming: ElasticsearchIndexNaming)
constructor(elasticsearchClient: ReactiveElasticsearchClient, batchOptions: BatchOptions? = null, refreshPolicy: Refresh = Refresh.True, metrics: WowMetrics = WowMetrics.NONE)

The constructor from before the index prefix, kept for binary compatibility: Wow's unprefixed names.

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 <S : Any> load(aggregateId: AggregateId): Mono<Snapshot<S>>
Link copied to clipboard
open override fun <S : Any> save(snapshot: Snapshot<S>): Mono<Void>