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) |
| Modifier and Type | Method and Description |
|---|---|
double |
count() |
void |
increment(double amount)
Update the counter by
amount. |
getIdpublic void increment(double amount)
Counteramount.