Interface MeterRegistryConfigurer<T extends io.micrometer.core.instrument.MeterRegistry>
-
- Type Parameters:
T
- the registry type to configure.
- All Known Implementing Classes:
MicrometerMeterRegistryConfigurer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MeterRegistryConfigurer<T extends io.micrometer.core.instrument.MeterRegistry>
Interface that is used to configure a specific type ofMeterRegistry
. Any component that implements this interface will be applied on the supportedMeterRegistry
during theComponentFactory
initialization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
apply(T meterRegistry)
Applies this configurer to the given meter registry.default boolean
supports(T meterRegistry)
Checks whether this configurer supports the given meter registry type.
-
-
-
Method Detail
-
apply
void apply(T meterRegistry)
Applies this configurer to the given meter registry.- Parameters:
meterRegistry
- theMeterRegistry
to configure.
-
supports
default boolean supports(T meterRegistry)
Checks whether this configurer supports the given meter registry type.- Parameters:
meterRegistry
- aMeterRegistry
.- Returns:
- boolean
true
if the meter registry is supported.
-
-