Counter.BuilderMeter.Type| Constructor and Description |
|---|
SpectatorCounter(com.netflix.spectator.api.Counter counter,
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) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.Iterable<Tag> |
getTags() |
int |
hashCode() |
void |
increment(double amount)
Update the counter by
amount. |
public SpectatorCounter(com.netflix.spectator.api.Counter counter,
java.lang.String description)
public void increment(double amount)
Counteramount.public double count()
Counterpublic java.lang.String getDescription()
getDescription in interface Meterpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object