public interface TimeGauge extends Gauge
Modifier and Type | Interface and Description |
---|---|
static class |
TimeGauge.Builder<T>
Fluent builder for time gauges.
|
Meter.Id, Meter.Type
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.TimeUnit |
baseTimeUnit() |
static <T> TimeGauge.Builder<T> |
builder(java.lang.String name,
T obj,
java.util.concurrent.TimeUnit fUnits,
java.util.function.ToDoubleFunction<T> f) |
default double |
value(java.util.concurrent.TimeUnit unit)
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.
|
static <T> TimeGauge.Builder<T> builder(java.lang.String name, T obj, java.util.concurrent.TimeUnit fUnits, java.util.function.ToDoubleFunction<T> f)
java.util.concurrent.TimeUnit baseTimeUnit()
default double value(java.util.concurrent.TimeUnit unit)
unit
- The base unit of time to scale the value to.