Committed

class Committed(val stream: EventStreamRecord, val position: LogPosition, val state: Any, val results: Map<String, Any> = emptyMap(), val deleted: Boolean = false, val schedules: Map<String, ScheduleRule> = emptyMap(), val first: FirstCommit? = null, val rejection: Rejection? = null) : CommandOutcome

The command's events are committed as stream at position; state is the state after them. results are what its decide function put for the caller (me.ahoo.wow.api.decide.DecideScope.putResult); they are not kept, so a duplicate of the command is answered without them. deleted and schedules are the metadata the kernel keeps beside the state after the stream (CachedState); its scope is the stream's.

A command rejected with events commits them too: rejection is then its rejection, which the caller is answered with at the version stream reached, and results are empty.

Constructors

Link copied to clipboard
constructor(stream: EventStreamRecord, position: LogPosition, state: Any, results: Map<String, Any> = emptyMap(), deleted: Boolean = false, schedules: Map<String, ScheduleRule> = emptyMap(), first: FirstCommit? = null, rejection: Rejection? = null)

Properties

Link copied to clipboard
Link copied to clipboard

What the aggregate's first stream recorded, when the kernel knows it.

Link copied to clipboard
Link copied to clipboard

The rejection whose events stream commits; null for a commit of the command's events.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Any
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