@NonNullApi
@NonNullFields
public class ThreadPoolTaskExecutorMetrics
extends java.lang.Object
implements io.micrometer.core.instrument.binder.MeterBinder
ThreadPoolTaskExecutor pools. Does not record timings on operations executed in the
ExecutorService, as this requires the instance to be wrapped. Timings are provided separately by wrapping
the executor service with TimedThreadPoolTaskExecutor.| Constructor and Description |
|---|
ThreadPoolTaskExecutorMetrics(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor,
java.lang.String name,
java.lang.Iterable<io.micrometer.core.instrument.Tag> tags) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry registry) |
static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
monitor(io.micrometer.core.instrument.MeterRegistry registry,
java.lang.String name,
java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
Returns a new
ThreadPoolTaskExecutor with recorded metrics. |
static java.util.concurrent.Executor |
monitor(io.micrometer.core.instrument.MeterRegistry registry,
java.lang.String name,
io.micrometer.core.instrument.Tag... tags)
Returns a new
ThreadPoolTaskExecutor with recorded metrics. |
public ThreadPoolTaskExecutorMetrics(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor,
java.lang.String name,
java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor monitor(io.micrometer.core.instrument.MeterRegistry registry,
java.lang.String name,
java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
ThreadPoolTaskExecutor with recorded metrics.registry - The registry to bind metrics to.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.Executor monitor(io.micrometer.core.instrument.MeterRegistry registry,
java.lang.String name,
io.micrometer.core.instrument.Tag... tags)
ThreadPoolTaskExecutor with recorded metrics.registry - The registry to bind metrics to.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
bindTo in interface io.micrometer.core.instrument.binder.MeterBinder