public class SimpleGauge<T> extends AbstractSimpleMeter implements Gauge
Meter.Type
id
Constructor and Description |
---|
SimpleGauge(MeterId id,
T obj,
java.util.function.ToDoubleFunction<T> value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<Measurement> |
measure()
Get the set of measurements for this meter.
|
double |
value()
Returns the current value.
|
getName, getTags
public double value()
Gauge
public java.lang.Iterable<Measurement> measure()
Meter