SnapshotPlacement

class SnapshotPlacement(val store: String, val copy: String? = null, val generation: Int = 1, val copyGeneration: Int = 1)

Where an aggregate type's snapshots are written: its store, the one the write side reads as its cache and its state reads read, and, when its queries read another, that store's copy, written by a subscription of its own.

Constructors

Link copied to clipboard
constructor(store: String, copy: String? = null, generation: Int = 1, copyGeneration: Int = 1)

Properties

Link copied to clipboard
val copy: String?
Link copied to clipboard

The generation of its copy's table in copy (.query.snapshot.generation).

Link copied to clipboard

The generation of the type's own table in store (.snapshot.generation).

Link copied to clipboard

The store the type's snapshot queries read: its copy when it has one, else its own.

Link copied to clipboard
Link copied to clipboard

The stores that keep the type's snapshots: its own, then its copy.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun generationOf(target: String): Int

The configured generation of the type's table in target, its own store or its copy.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun isCopy(target: String): Boolean

Whether target is the type's copy, read by its queries, rather than its own store.

Link copied to clipboard
open override fun toString(): String