Class NoopCounter

java.lang.Object
org.apache.calcite.avatica.metrics.noop.NoopCounter
All Implemented Interfaces:
Counter

public class NoopCounter extends Object implements Counter
Counter implementation which does nothing.
  • Constructor Details

    • NoopCounter

      public NoopCounter()
  • Method Details

    • increment

      public void increment()
      Description copied from interface: Counter
      Increment this by 1.
      Specified by:
      increment in interface Counter
    • increment

      public void increment(long n)
      Description copied from interface: Counter
      Increment this by n.
      Specified by:
      increment in interface Counter
      Parameters:
      n - The amount to increment.
    • decrement

      public void decrement()
      Description copied from interface: Counter
      Decrement this by 1.
      Specified by:
      decrement in interface Counter
    • decrement

      public void decrement(long n)
      Description copied from interface: Counter
      Decrement this by n.
      Specified by:
      decrement in interface Counter
      Parameters:
      n - The amount to decrement.