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

      • GenericTaskExecutorMetrics

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

      • bindTo

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