InMemoryCommandBus
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.
Author
ahoo wang
Parameters
Function that creates a unicast sink for each named aggregate. Defaults to unicast with backpressure buffer.
Constructors
Properties
Supplier for creating sinks for command distribution. Uses unicast mode to ensure each command reaches exactly one consumer.
The topic kind for command messages, always returns TopicKind.COMMAND
Functions
Creates a server command exchange for the given command message. This exchange handles the command processing lifecycle.
Wraps a LocalCommandBus with metrics collection capabilities. Returns a MetricLocalCommandBus that collects metrics on command operations.
Receives messages for the specified named aggregates.
Sends a message through the in-memory bus.
Returns the number of subscribers for the specified named aggregate.