Class MicrometerMetricsConfigurationEnhancer
java.lang.Object
org.axonframework.extension.metrics.micrometer.MicrometerMetricsConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
A
ConfigurationEnhancer registering the default MicrometerMetricsConfiguration- Since:
- 5.4.1
- Author:
- Steven van Beelen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe order ofthisenhancer, set toMetricsConfigurationEnhancer.ENHANCER_ORDERplus5, ensuring the deprecated flow wherein theMetricsConfigurationEnhancersets these itself still wins. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry registry) 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 ofthisenhancer, set toMetricsConfigurationEnhancer.ENHANCER_ORDERplus5, ensuring the deprecated flow wherein theMetricsConfigurationEnhancersets these itself still wins.The fact we register components and decorators in an enhancer ensures a
MicrometerMetricsConfigurationwill be present regardless of the path that's chosen by the user.- See Also:
-
-
Constructor Details
-
MicrometerMetricsConfigurationEnhancer
public MicrometerMetricsConfigurationEnhancer()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-
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.
-