public class DefaultExecutorServiceMetricsProvider extends java.lang.Object implements ExecutorServiceMetricsProvider
| Constructor and Description |
|---|
DefaultExecutorServiceMetricsProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ExecutorService |
bind(io.micrometer.core.instrument.MeterRegistry meterRegistry,
java.util.concurrent.ThreadPoolExecutor executorService,
java.lang.String executorServiceName,
long tenantId)
bind the executor service to the registry, only support ThreadPool right now, see
unbind(MeterRegistry, String, long) |
void |
bindMetricsOnly(io.micrometer.core.instrument.MeterRegistry meterRegistry,
java.util.concurrent.ThreadPoolExecutor executorService,
java.lang.String executorServiceName,
long tenantId)
bind the executor service to the registry, only support ThreadPool right now, see
unbind(MeterRegistry, String, long)
This will only bind statisctics of the Threadpool, and not time taks. |
void |
unbind(io.micrometer.core.instrument.MeterRegistry meterRegistry,
java.lang.String executorServiceName,
long tenantId)
unbind all metrics of the named executor service from the meter registry
|
public DefaultExecutorServiceMetricsProvider()
public java.util.concurrent.ExecutorService bind(io.micrometer.core.instrument.MeterRegistry meterRegistry,
java.util.concurrent.ThreadPoolExecutor executorService,
java.lang.String executorServiceName,
long tenantId)
ExecutorServiceMetricsProviderunbind(MeterRegistry, String, long)bind in interface ExecutorServiceMetricsProviderpublic void bindMetricsOnly(io.micrometer.core.instrument.MeterRegistry meterRegistry,
java.util.concurrent.ThreadPoolExecutor executorService,
java.lang.String executorServiceName,
long tenantId)
ExecutorServiceMetricsProviderunbind(MeterRegistry, String, long)
This will only bind statisctics of the Threadpool, and not time taks.bindMetricsOnly in interface ExecutorServiceMetricsProviderpublic void unbind(io.micrometer.core.instrument.MeterRegistry meterRegistry,
java.lang.String executorServiceName,
long tenantId)
ExecutorServiceMetricsProviderunbind in interface ExecutorServiceMetricsProvider