send

abstract fun <C : Any> send(command: CommandMessage<C>, waitStrategy: WaitStrategy): Mono<out ClientCommandExchange<C>>

Sends a command message with a specified wait strategy.

This method sends the command to the appropriate aggregate processor and returns a Mono that completes when the command reaches the stage specified by the wait strategy.

Return

a Mono emitting the client command exchange when the wait condition is met

Parameters

C

the type of the command

command

the command message to send

waitStrategy

the strategy defining how long to wait and what to wait for

See also