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
@ThreadSafe
abstract class InMemoryMessageBus<M : Message<*, *>, NamedAggregate, E : MessageExchange<*, M>> : LocalMessageBus<M, E>

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
class MessageReceiver<E : Any>(messages: Flux<E>, val readiness: Mono<Void> = Mono.empty(), processingAdmission: () -> Unit = {}, processingQuiescence: () -> Unit = {})

A single message source with separate readiness and processing admission.

Link copied to clipboard
data class MessageSubscription(val namedAggregates: Set<NamedAggregate>, val receiverGroup: String = DEFAULT_RECEIVER_GROUP)

Describes a message bus subscription.

Properties

Link copied to clipboard

Header key used to indicate local-first message routing.

Functions

Link copied to clipboard

Confirms that this receiver synchronously admitted the local exchange.

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

Rejects local-only suppression when this exchange is filtered or cannot be admitted. The distributed copy then remains eligible for processing.

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.