Interface MetricRegistries.ExecutorInstrumentationBuilderFinalStage

Enclosing class:
MetricRegistries

public static interface MetricRegistries.ExecutorInstrumentationBuilderFinalStage
  • 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

      @CheckReturnValue ExecutorService build()
      Builds the instrumented ExecutorService.
      Returns:
      instrumented executor service