Counter.Builder
Meter.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)
Counter
amount
.public double count()
Counter
public java.lang.String getDescription()
getDescription
in interface Meter
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object