public class StepCounter extends AbstractMeter implements Counter
count()
will report the number events in the last complete interval rather than the total for
the life of the process.Counter.BuilderMeter.Id, Meter.Type| Constructor and Description |
|---|
StepCounter(Meter.Id id,
Clock clock,
long stepMillis)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
count()
The cumulative count since this counter was created.
|
void |
increment(double amount)
Update the counter by
amount. |
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void increment(double amount)
Counteramount.