Class Snapshot.HistogramBucket

  • Enclosing class:
    Snapshot

    public static class Snapshot.HistogramBucket
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      HistogramBucket​(double bucket, long count)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getBucket()
      Returns the upper limit value of this bucket
      long getCount()
      Returns the count of the bucket
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object