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, toString
AtomicLong counter
public AtomicLongCounter(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 String formatValue()
Statistic
formatValue
in interface Statistic
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.