public class SimpleCounter extends AbstractSimpleMeter implements Counter
Meter.Typeid| Constructor and Description |
|---|
SimpleCounter(MeterId id) |
| Modifier and Type | Method and Description |
|---|---|
double |
count()
The cumulative count since this counter was created.
|
void |
increment()
Update the counter by one.
|
void |
increment(double amount)
Update the counter by
amount. |
java.util.List<Measurement> |
measure()
Get the set of measurements for this meter.
|
getName, getTagspublic SimpleCounter(MeterId id)
public void increment()
Counterpublic void increment(double amount)
Counteramount.public double count()
Counterpublic java.util.List<Measurement> measure()
Meter