CommandCandidate

class CommandCandidate @InternalWowApi constructor(val type: CommandType, val body: Any, val ref: AggregateRef, val scope: Scope, val operator: Operator?, val caller: Caller?)

A command as a CommandValidator sees it: decoded and transformed, not yet decided. Fields may be added: construct it with of; the constructor is internal to Wow.

  • body, of type, sent to ref, the target aggregate (its tenant and its id with it), in scope. A creation that names no aggregate is validated before its id is chosen, on every path: its ref names the id AggregateRef.UNASSIGNED.

  • operator is who the command records as acting, whatever it came through, and what its event stream records; null for an anonymous caller's command.

  • caller is the request's caller, with its claims, when the command carries one: a command a request admitted, here, on a peer or through a command topic; null for a saga's derived command, a timer's and an older writer's.

Constructors

Link copied to clipboard
constructor(type: CommandType, body: Any, ref: AggregateRef, scope: Scope, operator: Operator?, caller: Caller?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val body: Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(type: CommandType = this.type, body: Any = this.body, ref: AggregateRef = this.ref, scope: Scope = this.scope, operator: Operator? = this.operator, caller: Caller? = this.caller): CommandCandidate

This CommandCandidate with the given fields replaced: Wow's own copy, left out of the ABI.

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