public class AtomicLongCounter extends AbstractStatistic implements Counter
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.atomic.AtomicLong |
counter
The counter to use.
|
key
Constructor and Description |
---|
AtomicLongCounter(java.lang.String key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
decrement()
Decrement the counter.
|
java.lang.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, toString
public AtomicLongCounter(java.lang.String key)
key
- Key to report.public long increment()
Counter
public long decrement()
Counter
public long increment(long i)
Counter
public long getValue()
Counter
public java.lang.String formatValue()
Statistic
formatValue
in interface Statistic
Copyright © 2019 ELKI Development Team. License information.