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,
ToDoubleFunction<T> f) |
Modifier and Type | Method and Description |
---|---|
double |
count() |
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, measure
public StepFunctionCounter(Meter.Id id, Clock clock, long stepMillis, T obj, ToDoubleFunction<T> f)
public double count()
count
in interface FunctionCounter
Copyright © 2018. All rights reserved.