Class RetryMetricsBinder
java.lang.Object
io.micronaut.configuration.metrics.binder.retry.RetryMetricsBinder
- All Implemented Interfaces:
io.micronaut.context.event.ApplicationEventListener<io.micronaut.retry.event.RetryEvent>
,io.micronaut.retry.event.RetryEventListener
,EventListener
@Requires(classes={io.micronaut.retry.event.RetryEventListener.class,io.micronaut.retry.event.RetryEvent.class}) @Requires(property="micronaut.metrics.binders.retry.enabled",notEquals="false",defaultValue="false")
@Singleton
@RequiresMetrics
public class RetryMetricsBinder
extends Object
implements io.micronaut.retry.event.RetryEventListener
Instruments Micronaut retries via Micrometer.
- Author:
- Robert Young
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRetryMetricsBinder
(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(io.micronaut.retry.event.RetryEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.event.ApplicationEventListener
supports
-
Field Details
-
RETRY_METRICS_ENABLED
- See Also:
-
-
Constructor Details
-
RetryMetricsBinder
public RetryMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) - Parameters:
meterRegistryProvider
- The meter registry provider
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(io.micronaut.retry.event.RetryEvent event) - Specified by:
onApplicationEvent
in interfaceio.micronaut.context.event.ApplicationEventListener<io.micronaut.retry.event.RetryEvent>
-