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)