Class DeadLetterMultiTenancyConfigurationEnhancer
java.lang.Object
io.axoniq.framework.messaging.multitenancy.deadletter.DeadLetterMultiTenancyConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
@Internal
public class DeadLetterMultiTenancyConfigurationEnhancer
extends Object
implements ConfigurationEnhancer
Makes an enabled dead-letter queue configuration tenant-aware by routing its configured queue factory per tenant.
This enhancer does nothing if the optional dependency for dead-letter queue support is not present on the classpath.
- Since:
- 5.4.0
- Author:
- Jan Galinski
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe order at which dead-letter queue support is configured after the general and Axon Server multi-tenancy components. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of theDeadLetterMultiTenancyConfigurationEnhancerthat uses the class loader which loaded this class to check for the presence of the optional dead-letter queue module. -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry componentRegistry) static booleanisDeadLetterQueuePresent(ClassLoader classLoader) Checks whether the optional dead-letter queue module is available to the supplied class loader.intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Field Details
-
ENHANCER_ORDER
public static final int ENHANCER_ORDERThe order at which dead-letter queue support is configured after the general and Axon Server multi-tenancy components.- See Also:
-
-
Constructor Details
-
DeadLetterMultiTenancyConfigurationEnhancer
public DeadLetterMultiTenancyConfigurationEnhancer()Creates a new instance of theDeadLetterMultiTenancyConfigurationEnhancerthat uses the class loader which loaded this class to check for the presence of the optional dead-letter queue module.
-
-
Method Details
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-
isDeadLetterQueuePresent
Checks whether the optional dead-letter queue module is available to the supplied class loader.- Parameters:
classLoader- the class loader to inspect- Returns:
truewhen dead-letter queue support is available
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
componentRegistry- The registry instance to enhance.
-