Class ExecutorServiceMetricsBinder
java.lang.Object
io.micronaut.configuration.metrics.binder.executor.ExecutorServiceMetricsBinder
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<ExecutorService>
,EventListener
@Singleton
@RequiresMetrics
@Requires(property="micronaut.metrics.binders.executor.enabled",
notEquals="false")
public class ExecutorServiceMetricsBinder
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<ExecutorService>
Instruments Micronaut related thread pools via Micrometer.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionExecutorServiceMetricsBinder
(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) -
Method Summary
Modifier and TypeMethodDescriptiononCreated
(io.micronaut.context.event.BeanCreatedEvent<ExecutorService> event)
-
Constructor Details
-
ExecutorServiceMetricsBinder
public ExecutorServiceMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) - Parameters:
meterRegistryProvider
- The meter registry provider
-
-
Method Details
-
onCreated
public ExecutorService onCreated(io.micronaut.context.event.BeanCreatedEvent<ExecutorService> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<ExecutorService>
-