Package io.axoniq.framework.messaging.queryhandling.distributed
@NullMarked
package io.axoniq.framework.messaging.queryhandling.distributed
Part of the Axon Messaging module. Contains classes related to distributed.
-
ClassDescriptionA
QueryBusConnectorimplementation that wraps anotherQueryBusConnectorand delegates all calls to it.Implementation of aQueryBusthat is aware of multiple instances of aQueryBusworking together to spread the load.Configuration for theDistributedQueryBus.Configuration enhancer for theDistributedQueryBus, which upon detection of aQueryBusConnectorin the configuration will decorate the regularQueryBuswith the provided connector.Predicate deciding whether aQueryMessagethat is about to be dispatched through aQueryBusConnectorshould be handled by the local segment directly (taking a "local shortcut") instead of being routed by the connector, which may hand the query to a different segment.AQueryBusConnectorthat offers a "local shortcut".AConfigurationEnhancerthat when aQueryBusConnectoris present in the configuration may decorate it with aLocalShortcutQueryBusConnectorwrapping a registeredLocalQueryDispatchPredicate.Connector implementation that converts the payload of outgoing messages into the expected format.TheQueryBusConnectorinterface defines the contract for connecting multipleQueryBusinstances.Defines a handler for processing query messages and managing subscription queries.Defines a callback mechanism to handle update messages for subscription queries in a reactive and asynchronous manner.