Class TestStatsProvider.TestCounter

java.lang.Object
org.apache.bookkeeper.client.TestStatsProvider.TestCounter
All Implemented Interfaces:
org.apache.bookkeeper.stats.Counter
Enclosing class:
TestStatsProvider

public class TestStatsProvider.TestCounter extends Object implements org.apache.bookkeeper.stats.Counter
In-memory counter.
  • Constructor Details

    • TestCounter

      public TestCounter()
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.bookkeeper.stats.Counter
    • inc

      public void inc()
      Specified by:
      inc in interface org.apache.bookkeeper.stats.Counter
    • dec

      public void dec()
      Specified by:
      dec in interface org.apache.bookkeeper.stats.Counter
    • addCount

      public void addCount(long delta)
      Specified by:
      addCount in interface org.apache.bookkeeper.stats.Counter
    • addLatency

      public void addLatency(long eventLatency, TimeUnit unit)
      Specified by:
      addLatency in interface org.apache.bookkeeper.stats.Counter
    • get

      public Long get()
      Specified by:
      get in interface org.apache.bookkeeper.stats.Counter
    • getMax

      public Long getMax()