AtomicBoolean
Class AtomicBoolean
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicBoolean
- All Implemented Interfaces:
- Serializable
public class AtomicBoolean extends Object implements Serializable
A boolean
value that may be updated atomically. See the java.util.concurrent.atomic
package specification for description of the properties of atomic variables. An AtomicBoolean
is used in applications such as atomically updated flags, and cannot be used as a replacement for a Boolean
.
- Since:
- 1.5