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