Class 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 Detail

      • GenericExecutorMetrics

        public GenericExecutorMetrics​(Executor executor,
                                      String poolName)
    • Method Detail

      • bindTo

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