Class DefaultGauge<T>

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.internal.DefaultGauge<T>
Type Parameters:
T - reference type
All Implemented Interfaces:
Gauge, Meter

public class DefaultGauge<T> extends AbstractMeter implements Gauge
Default implementation for Gauge.
  • Constructor Details

  • Method Details

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