Class EventRateSimpleMovingAverage.CounterPartition

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    EventRateSimpleMovingAverage

    static class EventRateSimpleMovingAverage.CounterPartition
    extends java.util.concurrent.atomic.LongAdder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long end  
      private static long serialVersionUID  
      private long start  
    • Constructor Summary

      Constructors 
      Constructor Description
      CounterPartition​(long start, long length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long end()  
      boolean isBefore​(long time)  
      long start()  
      boolean targetFor​(long time)  
      • Methods inherited from class java.util.concurrent.atomic.LongAdder

        add, decrement, doubleValue, floatValue, increment, intValue, longValue, reset, sum, sumThenReset, toString
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • start

        private final long start
      • end

        private final long end
    • Constructor Detail

      • CounterPartition

        CounterPartition​(long start,
                         long length)
    • Method Detail

      • targetFor

        public boolean targetFor​(long time)
      • isBefore

        public boolean isBefore​(long time)
      • start

        public long start()
      • end

        public long end()