Class GenericExecutorMetrics

java.lang.Object
ubic.gemma.core.metrics.binder.GenericExecutorMetrics
All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder

public class GenericExecutorMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder
A meter binder that delegates to the appropriate Executor implementation.

This handles DelegatingExecutor by recursively binding to the delegate until it finds a supported implementation.

Author:
poirigui
  • Constructor Details

    • GenericExecutorMetrics

      public GenericExecutorMetrics(Executor executor, String poolName)
  • Method Details

    • bindTo

      public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
      Specified by:
      bindTo in interface io.micrometer.core.instrument.binder.MeterBinder