send

open override fun send(message: CommandMessage<*>): Mono<Void>

Sends a command message through the command bus after performing validation and idempotency checks. Notifies wait plans if configured in the message header.

Return

A Mono that completes when the command is successfully sent.

Parameters

message

The command message to send.

Throws

if the command is not idempotent.

jakarta.validation.ConstraintViolationException

if validation fails.