public interface Counter extends Meter
Modifier and Type | Method and Description |
---|---|
double |
actualCount()
The cumulative count as a floating point value since this counter was last reset.
|
void |
add(double amount)
Update the counter by the specified amount.
|
default long |
count()
The cumulative count since this counter was last reset.
|
default void |
increment()
Update the counter by one.
|
default void |
increment(long amount)
Update the counter by
amount . |
hasExpired, id, measure
default void increment()
default void increment(long amount)
amount
.amount
- Amount to add to the counter.void add(double amount)
default long count()
double actualCount()