DefaultCommandGateway
Default implementation of the CommandGateway interface. This gateway provides comprehensive command handling including validation, idempotency checking, and various sending strategies with optional waiting.
Constructors
Properties
The topic kind for command messages, always returns TopicKind.COMMAND
Functions
Receives messages for the specified named aggregates.
Sends a command message through the command bus after performing validation and idempotency checks. Notifies wait strategies if configured in the message header.
Sends a command with a specific wait strategy and returns a command exchange for tracking. This method handles wait strategy registration, propagation, and cleanup.
Sends a command and waits for the final result. Throws CommandResultException if the command execution fails.
Sends a command and waits until it is fully processed by the aggregate.
Sends a command and waits until it is successfully sent to the command bus.
Sends a command and waits until the aggregate state is snapshotted.
Sends a command and returns a stream of command results as they become available. This method allows monitoring the progress of command execution in real-time.