Package org.jgroups.util
Class PaddedAtomicLong
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicLong
-
- org.jgroups.util.PaddedAtomicLong
-
- All Implemented Interfaces:
java.io.Serializable
public class PaddedAtomicLong extends java.util.concurrent.atomic.AtomicLong
Copied from http://mechanical-sympathy.blogspot.ch/2011/08/false-sharing-java-7.html. Switch to @Contended once it is available.- Since:
- 4.0
- Author:
- Bela Ban
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PaddedAtomicLong(long initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
sum()
-
Methods inherited from class java.util.concurrent.atomic.AtomicLong
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-