LocalFirstMessageBus
interface LocalFirstMessageBus<M : Message<*, *>, NamedAggregate, Copyable<*>, E : MessageExchange<*, M>> : MessageBus<M, E>
A message bus that prioritizes local message handling before distributed routing.
This bus first attempts to send messages locally within the JVM, and only sends to the distributed bus if local sending fails or there are no local subscribers. It also merges local and distributed message streams for receiving.
Parameters
M
The message type, must implement Message, NamedAggregate, and Copyable
E
The message exchange type