Skip to content

Tag Archives: Java-util-concurrent-atomic package

The weakCompareAndSetVolatile() 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 weakCompareAndSetVolatile() 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
The getAcquire() 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 getAndSet() method of a AtomicReferenceArray class is used to atomically sets the value of index i of AtomicReferenceArray object to newValue which is passed… Read More
The compareAndExchange() 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 weakCompareAndSet() 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
The setOpaque() 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 get() 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 setOpaque() method of a AtomicReference class is used to set the value of this AtomicReference object with memory effects as specified by VarHandle.setOpaque(java.lang.Object…). In… Read More
The toString() method of a AtomicReference class is used to return the String representation of the current value of AtomicReference object. Syntax: public String toString()… Read More
The getAndSet() method of a AtomicReference class is used to atomically sets the value of AtomicReference object to newValue which is passed as parameter and… Read More
The set() method of a AtomicReference class is used to set the value of this AtomicReference object with memory semantics of reading as if the… Read More
The compareAndExchangeAcquire() 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 getPlain() method of a AtomicReferenceArray class is used to return the value of the element at index i for this AtomicReferenceArray object with with… Read More
The compareAndExchange() 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