Package-level declarations

Types

Link copied to clipboard
class DefaultHeader(delegate: MutableMap<String, String> = mutableMapOf(), var isReadOnly: Boolean = false) : Header, MutableMap<String, String>

Default implementation of the Header interface.

Link copied to clipboard
interface DistributedMessageBus<M : Message<*, *>, E : MessageExchange<*, M>> : MessageBus<M, E>

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

Link copied to clipboard

Abstract base class for in-memory message bus implementations.

Link copied to clipboard

A message bus that prioritizes local message handling before distributed routing.

Link copied to clipboard
interface LocalMessageBus<M : Message<*, *>, E : MessageExchange<*, M>> : MessageBus<M, E>

A local message bus that operates within a single JVM instance.

Link copied to clipboard
interface MessageBus<M : Message<*, *>, E : MessageExchange<*, M>> : AutoCloseable

Represents a message bus for sending and receiving messages in a distributed system.

Link copied to clipboard

Represents a message dispatcher that can run and dispatch messages.

Properties

Link copied to clipboard

Header key used to indicate local-first message routing.

Link copied to clipboard

Constant key used to store the receiver group in Reactor context.

Functions

Link copied to clipboard
fun ContextView.getReceiverGroup(): String

Retrieves the receiver group from the Reactor context.

Link copied to clipboard
fun <M : Message<*, *>> M.isLocalFirst(): Boolean

Checks if this message has local-first routing enabled.

Checks if the header has the local-first flag set.

Link copied to clipboard

Checks if this message has been handled locally.

Link copied to clipboard
fun Context.setReceiverGroup(receiverGroup: String): Context

Sets the receiver group in the Reactor context.

Link copied to clipboard

Determines if this message should use local-first routing.

Link copied to clipboard

Converts a nullable map of strings to a Header instance.

Link copied to clipboard
fun <M : Message<out M, *>> M.withLocalFirst(localFirst: Boolean = true): M

Sets the local-first flag on this message.

fun Header.withLocalFirst(localFirst: Boolean = true): Header

Adds the local-first flag to the header.

Link copied to clipboard
fun <T> Flux<T>.writeReceiverGroup(receiverGroup: String): Flux<T>

Writes the receiver group to the Reactor context for this Flux.