Snapshot

class Snapshot<out S : Any> @InternalWowApi constructor(val ref: AggregateRef, val version: Int, val scope: Scope, val access: Map<String, Any?>, val deleted: Boolean, val operator: Operator?, val firstEventTime: Long, val lastEventTime: Long, val state: S, val firstOperator: Operator? = null, val schedules: Map<String, ScheduleRule> = emptyMap())

An aggregate's latest committed state as a snapshot query and a state read answer it: the aggregate ref at version, its scope (owner and space), its access attributes (@Access, by name: a single one's value or null, a multiple one's values as a list), whether it is deleted, the operator of its last commit and the firstOperator of its first, the one that created it (each null for an anonymous caller), the times of its first and last events (epoch milliseconds), the schedules it keeps, each rule by its key, and its state, masked as the schema says.

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

Constructors

Link copied to clipboard
constructor(ref: AggregateRef, version: Int, scope: Scope, access: Map<String, Any?>, deleted: Boolean, operator: Operator?, firstEventTime: Long, lastEventTime: Long, state: S, firstOperator: Operator? = null, schedules: Map<String, ScheduleRule> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: S
Link copied to clipboard

Functions

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