Class NoopMeter

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.noop.NoopMeter
All Implemented Interfaces:
Meter
Direct Known Subclasses:
NoopCounter, NoopDistributionSummary, NoopFunctionCounter, NoopFunctionTimer, NoopGauge, NoopLongTaskTimer, NoopTimeGauge, NoopTimer

public class NoopMeter
extends AbstractMeter
  • Nested Class Summary

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

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

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

    Modifier and Type Method Description
    java.util.List<Measurement> measure()
    Get a set of measurements.

    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.Meter

    close, match, use
  • Constructor Details

    • NoopMeter

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

    • measure

      public java.util.List<Measurement> measure()
      Description copied from interface: Meter
      Get a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.
      Returns:
      The set of measurements that represents the instantaneous value of this meter.