Class UniformTimeSimpleSnapshot

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long count  
      private long max  
      private double mean  
      private long min  
    • Constructor Summary

      Constructors 
      Constructor Description
      UniformTimeSimpleSnapshot​(long max, long min, double mean, long count, long timeInterval, java.util.concurrent.TimeUnit timeIntervalUnit)
      Constructs the snapshot which simply returns the provided data as arguments.
    • Field Detail

      • max

        private final long max
      • min

        private final long min
      • mean

        private final double mean
      • count

        private final long count
    • Constructor Detail

      • UniformTimeSimpleSnapshot

        public UniformTimeSimpleSnapshot​(long max,
                                         long min,
                                         double mean,
                                         long count,
                                         long timeInterval,
                                         java.util.concurrent.TimeUnit timeIntervalUnit)
        Constructs the snapshot which simply returns the provided data as arguments.
        Parameters:
        max - The maximum.
        min - The minimum.
        mean - The mean.
        count - The total count.
        timeInterval - The time interval of this snapshot.
        timeIntervalUnit - The time interval unit.
    • Method Detail

      • size

        public long size()
        Description copied from interface: UniformTimeSnapshot
        Returns the number of values in the snapshot.
        Returns:
        the number of values
      • getMax

        public long getMax()
        Returns:
        The maximum value in this snapshot
      • getMin

        public long getMin()
        Returns:
        The minimum value in this snapshot
      • getMean

        public double getMean()
        Returns:
        The mean of the values in this snapshot