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(String name,
T obj,
ToDoubleFunction<T> f) |
double |
count() |
default Iterable<Measurement> |
measure()
Get a set of measurements.
|
static <T> FunctionCounter.Builder<T> builder(String name, @Nullable T obj, ToDoubleFunction<T> f)
double count()
default Iterable<Measurement> measure()
Meter
Copyright © 2018. All rights reserved.