Class NullStatsLogger.NullCounter

java.lang.Object
org.apache.bookkeeper.stats.NullStatsLogger.NullCounter
All Implemented Interfaces:
Counter
Enclosing class:
NullStatsLogger

static class NullStatsLogger.NullCounter extends Object implements Counter
A no-op Counter.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCount(long delta)
    Add delta to the value associated with this stat.
    void
    addLatency(long eventLatency, TimeUnit unit)
    An operation succeeded with the given eventLatency.
    void
    Clear this stat.
    void
    dec()
    Decrement the value associated with this stat.
    get()
    Get the value associated with this stat.
    void
    inc()
    Increment the value associated with this stat.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NullCounter

      NullCounter()
  • Method Details

    • clear

      public void clear()
      Description copied from interface: Counter
      Clear this stat.
      Specified by:
      clear in interface Counter
    • inc

      public void inc()
      Description copied from interface: Counter
      Increment the value associated with this stat.
      Specified by:
      inc in interface Counter
    • dec

      public void dec()
      Description copied from interface: Counter
      Decrement the value associated with this stat.
      Specified by:
      dec in interface Counter
    • addCount

      public void addCount(long delta)
      Description copied from interface: Counter
      Add delta to the value associated with this stat.
      Specified by:
      addCount in interface Counter
    • addLatency

      public void addLatency(long eventLatency, TimeUnit unit)
      Description copied from interface: Counter
      An operation succeeded with the given eventLatency. Update stats to reflect the same
      Specified by:
      addLatency in interface Counter
      Parameters:
      eventLatency - The event latency
    • get

      public Long get()
      Description copied from interface: Counter
      Get the value associated with this stat.
      Specified by:
      get in interface Counter