process

abstract override fun process(exchange: ServerCommandExchange<*>): Mono<DomainEventStream>

Processes a command exchange for this aggregate instance.

Command processing must be serial to maintain consistency and prevent race conditions.

Return

A Mono containing the resulting domain event stream.

Parameters

exchange

The command exchange to process.

Throws

if there's a version conflict.