StateEventPayload

One event of a StateEventRecord: its type name (context.aggregate.Event) and the body as a JSON tree, both of the current revision of its schema: a stored event of an older revision is upgraded before it is published, and one stored under a former name is published under the current one.

A sink makes one from the body's JSON text, the codec's own, which it holds already (ofText): the tree is then parsed on its first read, once, and a writer of the record writes the text as it is (bodyText).

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

Constructors

Link copied to clipboard
constructor(name: String, revision: Int, body: JsonNode)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val body: JsonNode

The body 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 body as the JSON text it was made from; null when it was made from a tree.

Link copied to clipboard
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

The event, never its body: a payload printed in a log or an exception holds no value of it.