Class Snapshot.HistogramBucket

  • Enclosing class:
    Snapshot

    public static class Snapshot.HistogramBucket
    extends Object
    Represents a cumulative histogram bucket at the moment it was sampled from the Snapshot. The bucket of Timer will be represented in nanoseconds. See Snapshot.bucketValues()
    • Constructor Detail

      • HistogramBucket

        public HistogramBucket​(double bucket,
                               long count)
        Parameters:
        count - count at this bucket
        bucket - the upper limit value of this bucket
    • Method Detail

      • getCount

        public long getCount()
        Returns the count of the bucket
        Returns:
        the count of the bucket
      • getBucket

        public double getBucket()
        Returns the upper limit value of this bucket
        Returns:
        the upper limit value of this bucket