SnapshotTable

class SnapshotTable @InternalWowApi constructor(val revision: Int, val rebuilding: Boolean = false, val backfilled: Boolean = true)

The record of one aggregate type's snapshot table: the state revision it is claimed at, whether snapshots of another revision or marked stale may remain to be rewritten (rebuilding), and whether the table has caught up with the log since it was first claimed (backfilled): a snapshot target added to a running service is filled from the beginning of the log. A query of a table that is catchingUp answers with rebuilding.

Fields may be added: construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(revision: Int, rebuilding: Boolean = false, backfilled: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Whether the table is rebuilding or not backfilled yet: a query of it answers with rebuilding.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(revision: Int = this.revision, rebuilding: Boolean = this.rebuilding, backfilled: Boolean = this.backfilled): SnapshotTable

This SnapshotTable with the given fields replaced: Wow's own copy, left out of the ABI.

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