T - reference typepublic class DefaultGauge<T> extends AbstractMeter implements Gauge
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.
|
getIdpublic DefaultGauge(Meter.Id id, @Nullable T obj, ToDoubleFunction<T> value)
public double value()
GaugeCopyright © 2020 LeanCloud. All rights reserved.