InMemoryStateEventBus
In-memory implementation of LocalStateEventBus for testing and development. Uses Reactor Sinks for message broadcasting within the same JVM instance. Messages are not persisted and are lost when the application restarts.
Parameters
Supplier for creating sinks for each named aggregate (default: multicast sink with backpressure buffer).
Constructors
Functions
Creates a StateEventExchange from a StateEvent message. Wraps the state event in a SimpleStateEventExchange for processing.
Wraps a LocalStateEventBus with metrics collection capabilities. Returns a MetricLocalStateEventBus that collects metrics on state event 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.