Class GenericTaskExecutorMetrics

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

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

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

Author:
poirigui
  • Constructor Details

    • GenericTaskExecutorMetrics

      public GenericTaskExecutorMetrics(org.springframework.core.task.TaskExecutor executor)
  • Method Details

    • setPoolName

      public void setPoolName(@Nullable String poolName)
    • bindTo

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