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.
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 message through the in-memory bus.
Attempts local delivery only while a processing subscriber is routable.
Returns the number of subscribers for the specified named aggregate.