Skip to content

Tag Archives: Java-util-concurrent-atomic package

The compareAndSet() method of a AtomicReference class is used to Atomically sets the value to newValue to AtomicReference object, if the current value of AtomicReference… Read More
The set() method of a AtomicReferenceArray class is used to set the value of the element at index i to newValue. Both index i and… Read More
The length() method of a AtomicReferenceArray class is used to return the length of this AtomicReferenceArray. Syntax: public final int length() Parameters: This method accepts… Read More
The getOpaque() method of a AtomicReference class is used to return the current value of AtomicReference object, with memory effects as specified by VarHandle.getOpaque(java.lang.Object…). This… Read More
The compareAndExchangeAcquire() method of a AtomicReference class is used to Atomically sets the value to newValue to AtomicReference object, if the current value of AtomicReference… Read More
The setPlain() method of a AtomicReference class is used to set the value of this AtomicReference object with memory semantics of setting as if the… Read More
The compareAndSet() method of a AtomicReferenceArray class is used to atomically sets the value of index i of AtomicReferenceArray to newValue, if the current value… Read More
The compareAndExchangeRelease() method of a AtomicReferenceArray class is used to atomically sets the value of index i of AtomicReferenceArray to newValue, if the current value… Read More
The lazySet() method of a AtomicReferenceArray class is used to set the value of the element at index i to newValue. Both index i and… Read More
The toString() method of a AtomicReferenceArray class is used to return the String representation of the current values of array.This method is used to represent… Read More
The setRelease() method of a AtomicReferenceArray class is used to set the value of the element at index i to newValue. Both index i and… Read More
The getOpaque() method of a AtomicReferenceArray class is used to return the value of the element at index i for this AtomicReferenceArray object with memory… Read More
The weakCompareAndSetAcquire() method of a AtomicReferenceArray class is used to atomically sets the value of the element at index i to newValue to newValue for… Read More
The lazySet() method of a AtomicReference class is used to set the value of this AtomicReference object with memory effects as specified by VarHandle.setRelease(java.lang.Object…) to… Read More
The weakCompareAndSetAcquire() method of a AtomicReference class is used to atomically sets the value to newValue for AtomicReference if the current value is equal to… Read More