Class Snapshot.PercentileValue

  • Enclosing class:
    Snapshot

    public static class Snapshot.PercentileValue
    extends Object
    Represents a percentile and its value at the moment it was sampled from the Snapshot. Percentile values of a Timer are represented in units of nanoseconds. See #percentileValue()
    • Constructor Detail

      • PercentileValue

        public PercentileValue​(double percentile,
                               double value)
        Parameters:
        percentile - percentile
        value - value of percentile
    • Method Detail

      • getPercentile

        public double getPercentile()
        Returns the percentile
        Returns:
        the percentile
      • getValue

        public double getValue()
        Returns the value at percentile
        Returns:
        the value at the percentile