类 CounterBuffer


  • @UsesJava8
    public class CounterBuffer
    extends Object
    Mutable buffer containing a long adder (Java 8) and a timestamp.
    从以下版本开始:
    1.3.0
    • 构造器详细资料

    • 方法详细资料

      • add

        public void add​(long delta)
      • reset

        public void reset()
      • getValue

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

        public long getTimestamp()
      • setTimestamp

        public void setTimestamp​(long timestamp)