Package io.axoniq.framework.messaging.commandhandling.distributed
@NullMarked
package io.axoniq.framework.messaging.commandhandling.distributed
Part of the Axon Messaging module. Contains classes related to command distribution.
-
ClassDescriptionThe
CommandBusConnectorinterface defines the contract for connecting multipleCommandBusinstances.A functional interface representing a handler for incoming command messages.A callback interface for handling the result of command processing.ACommandBusConnectorimplementation that wraps anotherCommandBusConnectorand delegates all calls to it.Implementation of aCommandBusthat is aware of multiple instances of aCommandBusworking together to spread load.Configuration for theDistributedCommandBus.Configuration enhancer for theDistributedCommandBus, which upon detection of aCommandBusConnectorin the configuration will decorate the regularCommandBuswith the provided connector.Predicate deciding whether aCommandMessagethat is about to be dispatched through aCommandBusConnectorshould be handled by the local segment directly (taking a "local shortcut") instead of being routed by the connector, which might hand the command to a different segment.ACommandBusConnectorthat offers a "local shortcut".AConfigurationEnhancerthat when aCommandBusConnectoris present in the configuration may decorate it with aLocalShortcutCommandBusConnectorwrapping a registeredLocalCommandDispatchPredicate.Connector implementation that converts the payload of outgoing messages into the expected format.