org.shiftone.jrat.util
Class AtomicLong
java.lang.Object
org.shiftone.jrat.util.AtomicLong
public class AtomicLong
- extends java.lang.Object
Before there was java.util.concurrent.atomic.AtomicLong, there was
org.shiftone.jrat.util.Sequence. This class was since renamed to make it
obvious what it does. This class does synchronize, while AtomicLong uses a
magic native method. This class supports Java 1.4.
- Author:
- jeff@shiftone.org (Jeff Drost)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AtomicLong
public AtomicLong()
AtomicLong
public AtomicLong(long initialValue)
get
public long get()
incrementAndGet
public long incrementAndGet()
addAndGet
public long addAndGet(long delta)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object