public final class Counter extends LongAdder
AtomicLong
.
This is based on JSR 166e's sharded counter, which is slated for JDK8. This class is part of the public interface of asynchbase, and code depending on asynchbase is encouraged to use it for their concurrent counter needs.
Constructor and Description |
---|
Counter() |
Modifier and Type | Method and Description |
---|---|
long |
get()
Returns the current value of the counter.
|
add, decrement, doubleValue, floatValue, increment, intValue, longValue, reset, sum, sumThenReset, toString
byteValue, shortValue