Class StatsSummary

    • Constructor Detail

      • StatsSummary

        public StatsSummary()
      • StatsSummary

        public StatsSummary​(int histogramWindowSize)
    • Method Detail

      • add

        public void add​(long value)
        Adds the value to the stats if it is >= 0.
        Parameters:
        value - Value to add for min/max/avg stats..
      • createSnapshot

        public StatsSummarySnapshot createSnapshot()
        Returns a snapshot of the current state.
        Returns:
        A snapshot of the current state.
      • getMinimum

        public long getMinimum()
        Returns the minimum seen value.
        Returns:
        The current minimum value.
      • getMaximum

        public long getMaximum()
        Returns the maximum seen value.
        Returns:
        The current maximum value.
      • getSum

        public long getSum()
        Returns the sum of all seen values.
        Returns:
        Sum of all values.
      • getCount

        public long getCount()
        Returns the count of all seen values.
        Returns:
        Count of all values.
      • getAverage

        public long getAverage()
        Calculates the average over all seen values.
        Returns:
        Average over all seen values.