DefaultCommandGateway
Default implementation of the CommandGateway interface. This gateway provides comprehensive command handling including validation, idempotency checking, and various sending strategies with optional waiting.
Parameters
The endpoint for command waiting functionality.
The underlying command bus for sending commands.
The validator for command body validation.
Checker for command request ID idempotency.
Coordinator for managing wait handles.
Notifier for command wait signals.
Constructors
Functions
Receives messages for the specified subscription.
Creates a single message source with an explicit transport readiness boundary.
Creates the message source owned by a me.ahoo.wow.runtime.WowRuntime dispatcher.
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.