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 plans if configured in the message header.
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 completes with the SENT stage result as soon as the command bus accepts it.
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.