public interface Counter extends Meter
Meter.Type
Modifier and Type | Method and Description |
---|---|
double |
count()
The cumulative count since this counter was created.
|
default Meter.Type |
getType() |
default void |
increment()
Update the counter by one.
|
void |
increment(double amount)
Update the counter by
amount . |
default void increment()
void increment(double amount)
amount
.amount
- Amount to add to the counter.double count()
default Meter.Type getType()