Class CounterBuffer


  • @UsesJava8
    public class CounterBuffer
    extends Object
    Mutable buffer containing a long adder (Java 8) and a timestamp.
    Since:
    1.3.0
    • Constructor Detail

    • Method Detail

      • add

        public void add​(long delta)
      • reset

        public void reset()
      • getValue

        public Long getValue()
        Returns the buffer value.
        Returns:
        the value of the buffer
      • getTimestamp

        public long getTimestamp()
      • setTimestamp

        public void setTimestamp​(long timestamp)