Class PeriodicStats

    • Field Detail

      • nextPeriodBegins

        private long nextPeriodBegins
      • lastTotal

        private long lastTotal
      • lastCount

        private long lastCount
      • average

        private double average
      • n

        private int n
    • Constructor Detail

      • PeriodicStats

        PeriodicStats()
      • PeriodicStats

        PeriodicStats​(long now)
    • Method Detail

      • update

        void update​(long now,
                    long total)
      • getAverage

        public double getAverage()
      • getLastCount

        public long getLastCount()
      • reset

        void reset​(long now)
      • reset

        void reset()
      • computeStartOfNextPeriod

        abstract long computeStartOfNextPeriod​(long now)