public class LongAdderCounter<T extends java.lang.Enum<T>> extends AbstractMetrics<T> implements PartitionedCount<T>
clazz| Constructor and Description |
|---|
LongAdderCounter(java.lang.Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T metric,
long delta) |
long |
getCount(T metric) |
void |
reset() |
long |
total() |
getMetricClazzclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricClazzpublic LongAdderCounter(java.lang.Class<T> clazz)
public void add(T metric, long delta)
add in interface PartitionedCount<T extends java.lang.Enum<T>>public long getCount(T metric)
getCount in interface PartitionedCount<T extends java.lang.Enum<T>>public long total()
total in interface PartitionedCount<T extends java.lang.Enum<T>>public void reset()
reset in interface ResettableCopyright © 2014 Tim Brooks. All Rights Reserved.