Interface ExecutorServiceMetricsContributor


@Internal public interface ExecutorServiceMetricsContributor
Contributes metrics for executor service implementations that need custom binding.
Since:
6.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    bindTo(io.micrometer.core.instrument.MeterRegistry meterRegistry, ExecutorService executorService, String name, List<io.micrometer.core.instrument.Tag> tags)
    Bind metrics for the executor service.
    boolean
    supports(ExecutorService executorService)
     
  • Method Details

    • supports

      boolean supports(ExecutorService executorService)
      Parameters:
      executorService - The executor service
      Returns:
      Whether this contributor handles the executor service
    • bindTo

      ExecutorService bindTo(io.micrometer.core.instrument.MeterRegistry meterRegistry, ExecutorService executorService, String name, List<io.micrometer.core.instrument.Tag> tags)
      Bind metrics for the executor service.
      Parameters:
      meterRegistry - The meter registry
      executorService - The executor service
      name - The bean name
      tags - The tags
      Returns:
      The executor service bean to keep