Class NoopTimeGauge

All Implemented Interfaces:
Gauge, Meter, TimeGauge

public class NoopTimeGauge extends NoopMeter implements TimeGauge
  • Constructor Details

    • NoopTimeGauge

      public NoopTimeGauge(Meter.Id id)
  • Method Details

    • baseTimeUnit

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