Package-level declarations
Types
Client-side command exchange interface for commands sent from clients.
Command Bus interface for handling command messages in the CQRS architecture.
Base interface for command exchanges that facilitate message passing during command processing.
Command Gateway interface for sending commands and waiting for their results.
Provides utility functions and extensions for managing command operators in message headers. This object allows setting and retrieving operator information from command message headers, which is useful for tracking who initiated a command.
Represents the result of a command execution, containing all relevant information about the command processing outcome.
Interface for objects that can provide command execution results. Implementations of this interface expose their results as a map of key-value pairs, allowing for flexible result representation and access.
Exception wrapping a command result that indicates failure.
Exception thrown when command validation fails.
Default implementation of the CommandGateway interface. This gateway provides comprehensive command handling including validation, idempotency checking, and various sending strategies with optional waiting.
Distributed Command Bus interface for handling commands across multiple instances or services.
Exception thrown when a duplicate request ID is detected.
In-memory implementation of CommandBus for local command processing. This bus uses unicast sinks to ensure each command has exactly one consumer, making it suitable for single-instance or testing scenarios.
Local Command Bus interface for handling commands within the same JVM instance.
Command bus that prioritizes local processing before falling back to distributed processing. Void commands are automatically configured to skip local-first behavior since they don't require waiting for results.
Server-side command exchange interface for commands being processed by the server.
Simple implementation of ClientCommandExchange.
Simple implementation of CommandMessage with default values for most properties. This class provides a convenient way to create command messages with sensible defaults.
Simple implementation of ServerCommandExchange.
Properties
Functions
Converts a CommandBuilder to a CommandMessage.
Converts any object to a CommandMessage using reflection and metadata.
Converts a WaitSignal to a CommandResult.
Converts a Throwable to a CommandResult representing a command failure.