public class TagSetCounter extends Counter
Constructor and Description |
---|
TagSetCounter(String category,
String name,
com.google.common.collect.ImmutableMap<String,String> tags) |
Modifier and Type | Method and Description |
---|---|
void |
add(String value) |
void |
addAll(Collection<String> values) |
Optional<CounterSnapshot> |
flush()
If the counter has no data, returns an absent value.
|
public void add(String value)
public void addAll(Collection<String> values)
public Optional<CounterSnapshot> flush()
Counter
Otherwise, creates a snapshot of the current internal state of the counter builder, resets the counter, then returns the snapshot.