public interface FunctionCounter extends Meter
Modifier and Type | Interface and Description |
---|---|
static class |
FunctionCounter.Builder<T>
Fluent builder for function counters.
|
Meter.Id, Meter.Type
Modifier and Type | Method and Description |
---|---|
static <T> FunctionCounter.Builder<T> |
builder(java.lang.String name,
T obj,
java.util.function.ToDoubleFunction<T> f) |
double |
count()
The cumulative count since this counter was created.
|
default java.lang.Iterable<Measurement> |
measure()
Get a set of measurements.
|
default Meter.Type |
type() |
static <T> FunctionCounter.Builder<T> builder(java.lang.String name, T obj, java.util.function.ToDoubleFunction<T> f)
double count()
default java.lang.Iterable<Measurement> measure()
Meter
default Meter.Type type()