upstream

abstract fun upstream(upstream: DomainEvent<*>): CommandBuilder

Sets the upstream domain event that triggered this command.

This is useful for tracking the event sourcing chain and maintaining causality between events and commands.

Return

this builder for method chaining

Parameters

upstream

the domain event that triggered this command

See also


abstract val upstream: DomainEvent<*>?