Package ubic.gemma.core.metrics.binder
Class GenericTaskExecutorMetrics
java.lang.Object
ubic.gemma.core.metrics.binder.GenericTaskExecutorMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class GenericTaskExecutorMetrics
extends Object
implements io.micrometer.core.instrument.binder.MeterBinder
A meter binder that delegates to the appropriate
TaskExecutor
implementation.
This handles DelegatingTaskExecutor
by recursively binding to the delegate until it finds a supported
implementation.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionGenericTaskExecutorMetrics
(org.springframework.core.task.TaskExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindTo
(io.micrometer.core.instrument.MeterRegistry registry) void
setPoolName
(String poolName)
-
Constructor Details
-
GenericTaskExecutorMetrics
public GenericTaskExecutorMetrics(org.springframework.core.task.TaskExecutor executor)
-
-
Method Details
-
setPoolName
-
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindTo
in interfaceio.micrometer.core.instrument.binder.MeterBinder
-