CommandEnvelope

data class CommandEnvelope<out COMMAND>(val command: COMMAND, val aggregateId: String, val commandId: CommandId, val correlationId: CorrelationId? = null, val causedBy: EventReference? = null, val idempotency: CommandIdempotency? = null, val occurredAt: Instant = Clock.System.now()) : HasAggregateId(source)

A command and the framework context needed to handle it against an aggregate.

Constructors

Link copied to clipboard
constructor(command: COMMAND, aggregateId: String, commandId: CommandId, correlationId: CorrelationId? = null, causedBy: EventReference? = null, idempotency: CommandIdempotency? = null, occurredAt: Instant = Clock.System.now())

Properties

Link copied to clipboard
open override val aggregateId: String

aggregate to load or create.

Link copied to clipboard

optional reference to the committed event that directly caused this command.

Link copied to clipboard

domain input passed to the aggregate decider.

Link copied to clipboard

identifies this command submission.

Link copied to clipboard

optional identifier linking commands and events in a wider action.

Link copied to clipboard

optional resolved domain-operation identity.

Link copied to clipboard

occurrence time assigned to events produced by the command.