Class NoopTimeGauge

java.lang.Object
All Implemented Interfaces:
Gauge, Meter, TimeGauge

public class NoopTimeGauge
extends NoopMeter
implements TimeGauge
  • Nested Class Summary

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

    Meter.Builder, Meter.Id, Meter.Type

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

    TimeGauge.Builder<T>
  • Constructor Summary

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

    Modifier and Type Method Description
    java.util.concurrent.TimeUnit baseTimeUnit()  
    double value()
    The act of observing the value by calling this method triggers sampling of the underlying number or user-defined function that defines the value for the gauge.

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

    measure

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

    close, getId, match, use

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

    value
  • Constructor Details

    • NoopTimeGauge

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

    • baseTimeUnit

      public java.util.concurrent.TimeUnit baseTimeUnit()
      Specified by:
      baseTimeUnit in interface TimeGauge
      Returns:
      The base time unit of the timer to which all published metrics will be scaled
    • value

      public double value()
      Description copied from interface: Gauge
      The act of observing the value by calling this method triggers sampling of the underlying number or user-defined function that defines the value for the gauge.
      Specified by:
      value in interface Gauge
      Returns:
      The current value.