Class NoopCounter

java.lang.Object
All Implemented Interfaces:
Counter, Meter

public class NoopCounter
extends NoopMeter
implements Counter
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Counter

    Counter.Builder

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter

    Meter.Builder, Meter.Id, Meter.Type
  • Constructor Summary

    Constructors
    Constructor Description
    NoopCounter​(Meter.Id id)  
  • Method Summary

    Modifier and Type Method Description
    double count()  
    void increment​(double amount)
    Update the counter by amount.

    Methods inherited from class io.micrometer.core.instrument.noop.NoopMeter

    measure

    Methods inherited from class io.micrometer.core.instrument.AbstractMeter

    getId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.Counter

    increment, measure

    Methods inherited from interface io.micrometer.core.instrument.Meter

    close, getId, match, use
  • Constructor Details

    • NoopCounter

      public NoopCounter​(Meter.Id id)
  • Method Details

    • increment

      public void increment​(double amount)
      Description copied from interface: Counter
      Update the counter by amount.
      Specified by:
      increment in interface Counter
      Parameters:
      amount - Amount to add to the counter.
    • count

      public double count()
      Specified by:
      count in interface Counter
      Returns:
      The cumulative count since this counter was created.