Class DefaultGauge<T>
- java.lang.Object
-
- io.micrometer.core.instrument.AbstractMeter
-
- io.micrometer.core.instrument.internal.DefaultGauge<T>
-
- Type Parameters:
T- reference type
public class DefaultGauge<T> extends AbstractMeter implements Gauge
Default implementation forGauge.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Gauge
Gauge.Builder<T>
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.Type
-
-
Constructor Summary
Constructors Constructor Description DefaultGauge(Meter.Id id, T obj, java.util.function.ToDoubleFunction<T> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()doublevalue()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.AbstractMeter
getId
-
-
-
-
Method Detail
-
value
public double value()
Description copied from interface:GaugeThe 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-