Module java.base

Class AtomicLong

java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicLong
All Implemented Interfaces:
Serializable

public class AtomicLong extends Number implements Serializable
A long value that may be updated atomically. See the VarHandle specification for descriptions of the properties of atomic accesses. An AtomicLong is used in applications such as atomically incremented sequence numbers, and cannot be used as a replacement for a Long. However, this class does extend Number to allow uniform access by tools and utilities that deal with numerically-based classes.
Since:
1.5
See Also: