InMemorySnapshotStore

A SnapshotStore in memory, for tests and samples. The version guard is one atomic compute per ref, and a table's claim one atomic compute per aggregate type.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val rebuilds: SnapshotRebuildStore

This store rewrites its snapshots in place: it is its own rebuild control plane.

Functions

Link copied to clipboard
open suspend override fun claim(type: AggregateType, revision: Int, lower: Boolean): SnapshotTable
Link copied to clipboard
open suspend override fun load(ref: AggregateRef): SnapshotRecord?
Link copied to clipboard
open suspend override fun mark(type: AggregateType, revision: Int, rebuilding: Boolean?, backfilled: Boolean?): SnapshotTable?
Link copied to clipboard
open suspend override fun markStale(ref: AggregateRef): Boolean
Link copied to clipboard
open suspend override fun pending(type: AggregateType, revision: Int, after: AggregateRef?, limit: Int): List<AggregateRef>
Link copied to clipboard
open suspend override fun rewrite(snapshot: SnapshotRecord): Boolean
Link copied to clipboard
open suspend override fun save(snapshot: SnapshotRecord): Boolean
Link copied to clipboard
open suspend override fun table(type: AggregateType): SnapshotTable?