public class EnhancedAtomicLong
extends java.util.concurrent.atomic.AtomicLong
AtomicLong with useful methods based on CAS.| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<java.lang.Long,java.lang.Long> |
DEC |
| Constructor and Description |
|---|
EnhancedAtomicLong() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evalAndUpdate(com.google.common.base.Predicate<java.lang.Long> predicate,
com.google.common.base.Function<java.lang.Long,java.lang.Long> update) |
static com.google.common.base.Predicate<java.lang.Long> |
gt(long n) |
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet