Class DistributedQueryBusConfigurationEnhancer
java.lang.Object
org.axonframework.messaging.queryhandling.distributed.DistributedQueryBusConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
@Internal
public class DistributedQueryBusConfigurationEnhancer
extends Object
implements ConfigurationEnhancer
Configuration enhancer for the
DistributedQueryBus, which upon detection of a QueryBusConnector in
the configuration will decorate the regular QueryBus with the provided
connector.- Since:
- 5.0.0
- Author:
- Mateusz Nowak
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.common.configuration.ConfigurationEnhancer
order
-
Field Details
-
DISTRIBUTED_QUERY_BUS_ORDER
public static final int DISTRIBUTED_QUERY_BUS_ORDERThe order in which theDistributedQueryBusis applied to theQueryBusin theComponentRegistry. As such, any decorator with a lower value will be applied to the delegate, and any higher value will be applied to theDistributedQueryBusitself. Using the same value can either lead to application of the decorator to the delegate or the distributed query bus, depending on the order of registration.- See Also:
-
-
Constructor Details
-
DistributedQueryBusConfigurationEnhancer
public DistributedQueryBusConfigurationEnhancer()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
componentRegistry- The registry instance to enhance.
-