public class StepFunctionCounter<T> extends AbstractMeter implements FunctionCounter
FunctionCounter.Builder<T>Meter.Id, Meter.Type| Constructor and Description |
|---|
StepFunctionCounter(Meter.Id id,
Clock clock,
long stepMillis,
T obj,
java.util.function.ToDoubleFunction<T> f) |
| Modifier and Type | Method and Description |
|---|---|
double |
count()
The cumulative count since this counter was created.
|
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, measure, typepublic double count()
FunctionCountercount in interface FunctionCounter