public class SimpleCounter extends AbstractMeter implements Counter
Counter.BuilderMeter.Type| Constructor and Description |
|---|
SimpleCounter(java.lang.String name,
java.lang.Iterable<Tag> tags,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
double |
count()
The cumulative count since this counter was created.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
void |
increment(double amount)
Update the counter by
amount. |
getDescription, getName, getTagsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDescription, getName, getTagspublic SimpleCounter(java.lang.String name,
java.lang.Iterable<Tag> tags,
java.lang.String description)
public void increment(double amount)
Counteramount.public double count()
Counterpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object