
public class AtomicLongCounter extends AbstractStatistic implements Counter
| Modifier and Type | Field and Description | 
|---|---|
(package private) AtomicLong | 
counter
The counter to use. 
 | 
key| Constructor and Description | 
|---|
AtomicLongCounter(String key)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
decrement()
Decrement the counter. 
 | 
String | 
formatValue()
Get a formatted version of the value, for output. 
 | 
long | 
getValue()
Get the current count. 
 | 
long | 
increment()
Increment the counter. 
 | 
long | 
increment(long i)
Increment the counter by i. 
 | 
getKey, toStringAtomicLong counter
public AtomicLongCounter(String key)
key - Key to report.public long increment()
Counterpublic long decrement()
Counterpublic long increment(long i)
Counterpublic long getValue()
Counterpublic String formatValue()
StatisticformatValue in interface Statistic