CommitTrace

class CommitTrace(val stream: EventStreamRecord, val events: List<Any>, val state: JsonNode, val deleted: Boolean, val access: Map<String, Any?> = emptyMap())

One commit of an aggregate's history (Kernel.trace): its stream, the stream's events (but the retired ones) read as the model's current schema (upgraded), and the aggregate after it: its state as the event codec writes it (a tree, so a mutable state evolving further does not change it), its deleted mark and its declared access attributes in their stored form (EventCodec.accessOf).

Constructors

Link copied to clipboard
constructor(stream: EventStreamRecord, events: List<Any>, state: JsonNode, deleted: Boolean, access: Map<String, Any?> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The aggregate's scope after the commit, the one the stream records.

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

The aggregate's version after the commit, the stream's.