Class DefaultExecutorServiceMetricsProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultExecutorServiceMetricsProvider

        public DefaultExecutorServiceMetricsProvider()
    • Method Detail

      • bind

        public java.util.concurrent.ExecutorService bind​(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                                                         java.util.concurrent.ThreadPoolExecutor executorService,
                                                         java.lang.String executorServiceName,
                                                         long tenantId)
        Description copied from interface: ExecutorServiceMetricsProvider
        bind the executor service to the registry, only support ThreadPool right now, see unbind(MeterRegistry, String, long)
        Specified by:
        bind in interface ExecutorServiceMetricsProvider
        Returns:
        the monitored executor service with monitoring on execution time
      • bindMetricsOnly

        public void bindMetricsOnly​(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                                    java.util.concurrent.ThreadPoolExecutor executorService,
                                    java.lang.String executorServiceName,
                                    long tenantId)
        Description copied from interface: ExecutorServiceMetricsProvider
        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.
        Specified by:
        bindMetricsOnly in interface ExecutorServiceMetricsProvider
      • unbind

        public void unbind​(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                           java.lang.String executorServiceName,
                           long tenantId)
        Description copied from interface: ExecutorServiceMetricsProvider
        unbind all metrics of the named executor service from the meter registry
        Specified by:
        unbind in interface ExecutorServiceMetricsProvider