DistributedMessageBus

interface DistributedMessageBus<M : Message<*, *>, E : MessageExchange<*, M>> : MessageBus<M, E>

A distributed message bus that operates across multiple JVM instances or nodes.

This interface extends MessageBus and is designed for scenarios where message distribution needs to happen across a cluster or distributed system.

Type Parameters

M

The type of message being handled, must extend Message

E

The type of message exchange, must extend MessageExchange

Inheritors

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
abstract fun receive(subscription: MessageSubscription): Flux<E>

Receives messages for the specified subscription.

Link copied to clipboard
open fun receiver(subscription: MessageSubscription): MessageReceiver<E>

Creates a single message source with an explicit transport readiness boundary.

Link copied to clipboard

Creates the message source owned by a me.ahoo.wow.runtime.WowRuntime dispatcher.

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

Sends a message through the message bus.