Interface ExecutorServiceMetricsContributor
@Internal
public interface ExecutorServiceMetricsContributor
Contributes metrics for executor service implementations that need custom binding.
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbindTo(io.micrometer.core.instrument.MeterRegistry meterRegistry, ExecutorService executorService, String name, List<io.micrometer.core.instrument.Tag> tags) Bind metrics for the executor service.booleansupports(ExecutorService executorService)
-
Method Details
-
supports
- 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 registryexecutorService- The executor servicename- The bean nametags- The tags- Returns:
- The executor service bean to keep
-