Interface MetricRegistries.ExecutorInstrumentationBuilderFinalStage
- Enclosing class:
MetricRegistries
public static interface MetricRegistries.ExecutorInstrumentationBuilderFinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the instrumentedExecutorService.reportQueuedDuration(boolean value) May be used to inform instrumentation that the delegate executor does not have a queue and the queue time metric is unnecessary to track.
-
Method Details
-
reportQueuedDuration
@CheckReturnValue MetricRegistries.ExecutorInstrumentationBuilderFinalStage reportQueuedDuration(boolean value) May be used to inform instrumentation that the delegate executor does not have a queue and the queue time metric is unnecessary to track. This is the case for cached executors, and executors which immediately reject work when all threads are saturated, otherwise the timer is always updated with very small values that aren't helpful. -
build
Builds the instrumentedExecutorService.- Returns:
- instrumented executor service
-