public class DefaultGauge<T> extends AbstractMeter implements Gauge
Gauge.Builder<T>
Meter.Id, Meter.Type
Constructor and Description |
---|
DefaultGauge(Meter.Id id,
T obj,
ToDoubleFunction<T> value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
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.
|
getId
public DefaultGauge(Meter.Id id, @Nullable T obj, ToDoubleFunction<T> value)
public double value()
Gauge
Copyright © 2019. All rights reserved.