public abstract class Counter extends Object
Modifier | Constructor and Description |
---|---|
protected |
Counter(String category,
String name,
com.google.common.collect.ImmutableMap<String,String> tags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
abstract Optional<CounterSnapshot> |
flush()
If the counter has no data, returns an absent value.
|
String |
getCategory() |
String |
getName() |
com.google.common.collect.ImmutableMap<String,String> |
getTags() |
int |
hashCode() |
String |
toString() |
public abstract Optional<CounterSnapshot> flush()
Otherwise, creates a snapshot of the current internal state of the counter builder, resets the counter, then returns the snapshot.
public String getCategory()
public String getName()