DistributedStateEventBus

Distributed state event bus that handles message routing across multiple instances or services. Messages are published to a distributed messaging system for cross-instance communication.

Inheritors

Properties

Link copied to clipboard
open override val topicKind: TopicKind

The topic kind for state events.

Functions

Link copied to clipboard
open override fun close()

Closes the message bus and releases any resources. Default implementation does nothing.

Link copied to clipboard

Wraps a DistributedStateEventBus with metrics collection capabilities. Returns a MetricDistributedStateEventBus that collects metrics on state event operations.

Link copied to clipboard
abstract fun receive(namedAggregates: Set<NamedAggregate>): Flux<StateEventExchange<*>>

Receives messages for the specified named aggregates.

Link copied to clipboard
abstract fun send(message: StateEvent<*>): Mono<Void>

Sends a message through the message bus.