send
Sends a command message through the command bus after performing validation and idempotency checks. Notifies wait strategies if configured in the message header.
Return
A Mono that completes when the command is successfully sent.
Parameters
The command message to send.
Throws
if the command is not idempotent.
if validation fails.
Sends a command with a specific wait strategy and returns a command exchange for tracking. This method handles wait strategy registration, propagation, and cleanup.
Return
A Mono emitting a ClientCommandExchange for tracking the command execution.
Parameters
The type of the command body.
The command message to send.
The strategy defining how and what to wait for.
Throws
if the command is not idempotent.
if validation fails.
if the wait strategy doesn't support void commands when needed.