Constructor and Description |
---|
MultiCountStatAndMetric(int numBuckets) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Map<T,Long>> |
getTimeCounts() |
Object |
getValueAndReset() |
void |
incBy(T key,
long count)
Increase the count by the given value.
|
protected String |
keyToString(T key) |
public MultiCountStatAndMetric(int numBuckets)
numBuckets
- the number of buckets to divide the time periods into.public void incBy(T key, long count)
Increase the count by the given value.
count
- number to countpublic Object getValueAndReset()
getValueAndReset
in interface IMetric
public void close()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.