Skip to main content

AtomicBoolean

Complete API reference for AtomicBoolean, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Atomic

Component: no


public class AtomicBoolean

Constructors

SignatureDescription
AtomicBoolean(AtomicBoolean)Executes AtomicBoolean and returns after the underlying engine call finishes.
AtomicBoolean()Executes AtomicBoolean and returns after the underlying engine call finishes.
AtomicBoolean(boolean)Creates a new instance of AtomicBoolean.

Attributes

NameTypeDescription
instanceAtomicBooleanRepresents the instance value stored on this instance. Read or assign to update the property.

Methods

SignatureReturnsDescription
get()booleanReturns the current value.
set(boolean)voidSets or updates the the value.
lazySet(boolean)voidPerforms the lazySet operation using the provided parameters (value).
getAndSet(boolean)booleanReturns the current and set.
compareAndSet(boolean, boolean)booleanCompares this instance with another for equality/order.
weakCompareAndSet(boolean, boolean)booleanPerforms the weakCompareAndSet operation using the provided parameters (expect, update).