PublishedState

The state of an aggregate after its stream version as it is published: the state as a JSON tree, numbers exact, and the schemaFingerprint of the state's schema, the one the Manifest and the aggregate's snapshots carry, so a reader knows which schema the tree follows.

The runtime keeps its own form of a view for the state consumers of a context (runtime.state.SharedStates): the serialized text a snapshot stores, with the aggregate's scope, deletion and access attributes. A sink maps that form to this one.

A sink makes one from that view's text (ofText): the tree is then parsed on its first read, once, and a writer of the record writes the text as it is (stateText).

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

Constructors

Link copied to clipboard
constructor(version: Int, schemaFingerprint: String, state: JsonNode)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val state: JsonNode

The state as a JSON tree, numbers exact: the one it was made from, or its text parsed on first read, once.

Link copied to clipboard

The state as the JSON text it was made from; null when it was made from a tree.

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

Its version and its schema, never a value of the state: the text goes to logs and exceptions (#7529).