Class HandlingTimeTracker

java.lang.Object
org.elasticsearch.common.network.HandlingTimeTracker

public class HandlingTimeTracker extends Object
Tracks how long message handling takes on a transport thread as a histogram with fixed buckets.
  • Field Details

    • BUCKET_COUNT

      public static final int BUCKET_COUNT
  • Constructor Details

    • HandlingTimeTracker

      public HandlingTimeTracker()
  • Method Details

    • getBucketUpperBounds

      public static int[] getBucketUpperBounds()
    • addHandlingTime

      public void addHandlingTime(long handlingTimeMillis)
    • getHistogram

      public long[] getHistogram()
      Returns:
      An array of frequencies of handling times in buckets with upper bounds as returned by getBucketUpperBounds(), plus an extra bucket for handling times longer than the longest upper bound.