Interface ExecutorServiceMetricsProvider

All Known Implementing Classes:
DefaultExecutorServiceMetricsProvider, NoOpExecutorServiceMetricsProvider

public interface ExecutorServiceMetricsProvider
Author:
Emmanuel Duchastenier
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(io.micrometer.core.instrument.MeterRegistry meterRegistry, ThreadPoolExecutor executorService, String executorServiceName)
    bind the executor service to the registry, only support ThreadPool right now, see unbind(MeterRegistry, String)
    void
    bindMetricsOnly(io.micrometer.core.instrument.MeterRegistry meterRegistry, ThreadPoolExecutor executorService, String executorServiceName)
    bind the executor service to the registry, only support ThreadPool right now, see unbind(MeterRegistry, String) This will only bind statisctics of the Threadpool, and not time taks.
    void
    unbind(io.micrometer.core.instrument.MeterRegistry meterRegistry, String executorServiceName)
    unbind all metrics of the named executor service from the meter registry
  • Method Details

    • bind

      ExecutorService bind(io.micrometer.core.instrument.MeterRegistry meterRegistry, ThreadPoolExecutor executorService, String executorServiceName)
      bind the executor service to the registry, only support ThreadPool right now, see unbind(MeterRegistry, String)
      Returns:
      the monitored executor service with monitoring on execution time
    • bindMetricsOnly

      void bindMetricsOnly(io.micrometer.core.instrument.MeterRegistry meterRegistry, ThreadPoolExecutor executorService, String executorServiceName)
      bind the executor service to the registry, only support ThreadPool right now, see unbind(MeterRegistry, String) This will only bind statisctics of the Threadpool, and not time taks.
    • unbind

      void unbind(io.micrometer.core.instrument.MeterRegistry meterRegistry, String executorServiceName)
      unbind all metrics of the named executor service from the meter registry