java.util.concurrent.atomic
16 classes of the module java.base.
Load them with:
using {
"java.util.concurrent.atomic"
}
AtomicBoolean#
class · extends Object · java.util.concurrent.atomic.AtomicBoolean
Implements: Serializable
Constructors
new AtomicBoolean() |
new AtomicBoolean(boolean initialValue) |
Ring: new AtomicBoolean(args) uses the constructor with the fewest parameters (at least one); new AtomicBoolean makes the object with the constructor without parameters; the others: (new AtomicBoolean).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | boolean get() |
compareAndExchange | compareAndExchange(expectedValue,newValue) | boolean compareAndExchange(boolean expectedValue, boolean newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(expectedValue,newValue) | boolean compareAndExchangeAcquire(boolean expectedValue, boolean newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(expectedValue,newValue) | boolean compareAndExchangeRelease(boolean expectedValue, boolean newValue) |
compareAndSet | compareAndSet(expectedValue,newValue) | boolean compareAndSet(boolean expectedValue, boolean newValue) |
getAcquire | getAcquire() | boolean getAcquire() |
getAndSet | getAndSet(newValue) | boolean getAndSet(boolean newValue) |
getOpaque | getOpaque() | boolean getOpaque() |
getPlain | getPlain() | boolean getPlain() |
lazySet | lazySet(newValue) | void lazySet(boolean newValue) |
set | set(newValue) | void set(boolean newValue) |
setOpaque | setOpaque(newValue) | void setOpaque(boolean newValue) |
setPlain | setPlain(newValue) | void setPlain(boolean newValue) |
setRelease | setRelease(newValue) | void setRelease(boolean newValue) |
weakCompareAndSet | weakCompareAndSet(expectedValue,newValue) | boolean weakCompareAndSet(boolean expectedValue, boolean newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(expectedValue,newValue) | boolean weakCompareAndSetAcquire(boolean expectedValue, boolean newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(expectedValue,newValue) | boolean weakCompareAndSetPlain(boolean expectedValue, boolean newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(expectedValue,newValue) | boolean weakCompareAndSetRelease(boolean expectedValue, boolean newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(expectedValue,newValue) | boolean weakCompareAndSetVolatile(boolean expectedValue, boolean newValue) |
The methods and fields of Object are inherited.
AtomicInteger#
class · extends Number · java.util.concurrent.atomic.AtomicInteger
Implements: Serializable
Constructors
new AtomicInteger() |
new AtomicInteger(int initialValue) |
Ring: new AtomicInteger(args) uses the constructor with the fewest parameters (at least one); new AtomicInteger makes the object with the constructor without parameters; the others: (new AtomicInteger).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | int get() |
accumulateAndGet | accumulateAndGet(x,accumulatorFunction) | int accumulateAndGet(int x, IntBinaryOperator accumulatorFunction) |
addAndGet | addAndGet(delta) | int addAndGet(int delta) |
compareAndExchange | compareAndExchange(expectedValue,newValue) | int compareAndExchange(int expectedValue, int newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(expectedValue,newValue) | int compareAndExchangeAcquire(int expectedValue, int newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(expectedValue,newValue) | int compareAndExchangeRelease(int expectedValue, int newValue) |
compareAndSet | compareAndSet(expectedValue,newValue) | boolean compareAndSet(int expectedValue, int newValue) |
decrementAndGet | decrementAndGet() | int decrementAndGet() |
getAcquire | getAcquire() | int getAcquire() |
getAndAccumulate | getAndAccumulate(x,accumulatorFunction) | int getAndAccumulate(int x, IntBinaryOperator accumulatorFunction) |
getAndAdd | getAndAdd(delta) | int getAndAdd(int delta) |
getAndDecrement | getAndDecrement() | int getAndDecrement() |
getAndIncrement | getAndIncrement() | int getAndIncrement() |
getAndSet | getAndSet(newValue) | int getAndSet(int newValue) |
getAndUpdate | getAndUpdate(updateFunction) | int getAndUpdate(IntUnaryOperator updateFunction) |
getOpaque | getOpaque() | int getOpaque() |
getPlain | getPlain() | int getPlain() |
incrementAndGet | incrementAndGet() | int incrementAndGet() |
lazySet | lazySet(newValue) | void lazySet(int newValue) |
set | set(newValue) | void set(int newValue) |
setOpaque | setOpaque(newValue) | void setOpaque(int newValue) |
setPlain | setPlain(newValue) | void setPlain(int newValue) |
setRelease | setRelease(newValue) | void setRelease(int newValue) |
updateAndGet | updateAndGet(updateFunction) | int updateAndGet(IntUnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(expectedValue,newValue) | boolean weakCompareAndSet(int expectedValue, int newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(expectedValue,newValue) | boolean weakCompareAndSetAcquire(int expectedValue, int newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(expectedValue,newValue) | boolean weakCompareAndSetPlain(int expectedValue, int newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(expectedValue,newValue) | boolean weakCompareAndSetRelease(int expectedValue, int newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(expectedValue,newValue) | boolean weakCompareAndSetVolatile(int expectedValue, int newValue) |
The methods and fields of Number are inherited.
AtomicIntegerArray#
class · extends Object · java.util.concurrent.atomic.AtomicIntegerArray
Implements: Serializable
Constructors
new AtomicIntegerArray(int length) |
new AtomicIntegerArray(int[] array) |
Ring: new AtomicIntegerArray(args) uses the constructor with the fewest parameters (at least one); new AtomicIntegerArray makes the object with the constructor without parameters; the others: (new AtomicIntegerArray).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(i) | int get(int i) |
accumulateAndGet | accumulateAndGet(i,x,accumulatorFunction) | int accumulateAndGet(int i, int x, IntBinaryOperator accumulatorFunction) |
addAndGet | addAndGet(i,delta) | int addAndGet(int i, int delta) |
compareAndExchange | compareAndExchange(i,expectedValue,newValue) | int compareAndExchange(int i, int expectedValue, int newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(i,expectedValue,newValue) | int compareAndExchangeAcquire(int i, int expectedValue, int newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(i,expectedValue,newValue) | int compareAndExchangeRelease(int i, int expectedValue, int newValue) |
compareAndSet | compareAndSet(i,expectedValue,newValue) | boolean compareAndSet(int i, int expectedValue, int newValue) |
decrementAndGet | decrementAndGet(i) | int decrementAndGet(int i) |
getAcquire | getAcquire(i) | int getAcquire(int i) |
getAndAccumulate | getAndAccumulate(i,x,accumulatorFunction) | int getAndAccumulate(int i, int x, IntBinaryOperator accumulatorFunction) |
getAndAdd | getAndAdd(i,delta) | int getAndAdd(int i, int delta) |
getAndDecrement | getAndDecrement(i) | int getAndDecrement(int i) |
getAndIncrement | getAndIncrement(i) | int getAndIncrement(int i) |
getAndSet | getAndSet(i,newValue) | int getAndSet(int i, int newValue) |
getAndUpdate | getAndUpdate(i,updateFunction) | int getAndUpdate(int i, IntUnaryOperator updateFunction) |
getOpaque | getOpaque(i) | int getOpaque(int i) |
getPlain | getPlain(i) | int getPlain(int i) |
incrementAndGet | incrementAndGet(i) | int incrementAndGet(int i) |
lazySet | lazySet(i,newValue) | void lazySet(int i, int newValue) |
length | length() | int length() |
set | set(i,newValue) | void set(int i, int newValue) |
setOpaque | setOpaque(i,newValue) | void setOpaque(int i, int newValue) |
setPlain | setPlain(i,newValue) | void setPlain(int i, int newValue) |
setRelease | setRelease(i,newValue) | void setRelease(int i, int newValue) |
updateAndGet | updateAndGet(i,updateFunction) | int updateAndGet(int i, IntUnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(i,expectedValue,newValue) | boolean weakCompareAndSet(int i, int expectedValue, int newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(i,expectedValue,newValue) | boolean weakCompareAndSetAcquire(int i, int expectedValue, int newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(i,expectedValue,newValue) | boolean weakCompareAndSetPlain(int i, int expectedValue, int newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(i,expectedValue,newValue) | boolean weakCompareAndSetRelease(int i, int expectedValue, int newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(i,expectedValue,newValue) | boolean weakCompareAndSetVolatile(int i, int expectedValue, int newValue) |
The methods and fields of Object are inherited.
AtomicIntegerFieldUpdater#
abstract · extends Object · java.util.concurrent.atomic.AtomicIntegerFieldUpdater
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(obj) | int get(Object obj) |
accumulateAndGet | accumulateAndGet(obj,x,accumulatorFunction) | int accumulateAndGet(Object obj, int x, IntBinaryOperator accumulatorFunction) |
addAndGet | addAndGet(obj,delta) | int addAndGet(Object obj, int delta) |
compareAndSet | compareAndSet(obj,expect,update) | boolean compareAndSet(Object obj, int expect, int update) |
decrementAndGet | decrementAndGet(obj) | int decrementAndGet(Object obj) |
getAndAccumulate | getAndAccumulate(obj,x,accumulatorFunction) | int getAndAccumulate(Object obj, int x, IntBinaryOperator accumulatorFunction) |
getAndAdd | getAndAdd(obj,delta) | int getAndAdd(Object obj, int delta) |
getAndDecrement | getAndDecrement(obj) | int getAndDecrement(Object obj) |
getAndIncrement | getAndIncrement(obj) | int getAndIncrement(Object obj) |
getAndSet | getAndSet(obj,newValue) | int getAndSet(Object obj, int newValue) |
getAndUpdate | getAndUpdate(obj,updateFunction) | int getAndUpdate(Object obj, IntUnaryOperator updateFunction) |
incrementAndGet | incrementAndGet(obj) | int incrementAndGet(Object obj) |
lazySet | lazySet(obj,newValue) | void lazySet(Object obj, int newValue) |
newUpdater | newUpdater(tclass,fieldName) | static AtomicIntegerFieldUpdater newUpdater(Class tclass, String fieldName) |
set | set(obj,newValue) | void set(Object obj, int newValue) |
updateAndGet | updateAndGet(obj,updateFunction) | int updateAndGet(Object obj, IntUnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(obj,expect,update) | boolean weakCompareAndSet(Object obj, int expect, int update) |
The methods and fields of Object are inherited.
AtomicLong#
class · extends Number · java.util.concurrent.atomic.AtomicLong
Implements: Serializable
Constructors
new AtomicLong() |
new AtomicLong(long initialValue) |
Ring: new AtomicLong(args) uses the constructor with the fewest parameters (at least one); new AtomicLong makes the object with the constructor without parameters; the others: (new AtomicLong).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | long get() |
accumulateAndGet | accumulateAndGet(x,accumulatorFunction) | long accumulateAndGet(long x, LongBinaryOperator accumulatorFunction) |
addAndGet | addAndGet(delta) | long addAndGet(long delta) |
compareAndExchange | compareAndExchange(expectedValue,newValue) | long compareAndExchange(long expectedValue, long newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(expectedValue,newValue) | long compareAndExchangeAcquire(long expectedValue, long newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(expectedValue,newValue) | long compareAndExchangeRelease(long expectedValue, long newValue) |
compareAndSet | compareAndSet(expectedValue,newValue) | boolean compareAndSet(long expectedValue, long newValue) |
decrementAndGet | decrementAndGet() | long decrementAndGet() |
getAcquire | getAcquire() | long getAcquire() |
getAndAccumulate | getAndAccumulate(x,accumulatorFunction) | long getAndAccumulate(long x, LongBinaryOperator accumulatorFunction) |
getAndAdd | getAndAdd(delta) | long getAndAdd(long delta) |
getAndDecrement | getAndDecrement() | long getAndDecrement() |
getAndIncrement | getAndIncrement() | long getAndIncrement() |
getAndSet | getAndSet(newValue) | long getAndSet(long newValue) |
getAndUpdate | getAndUpdate(updateFunction) | long getAndUpdate(LongUnaryOperator updateFunction) |
getOpaque | getOpaque() | long getOpaque() |
getPlain | getPlain() | long getPlain() |
incrementAndGet | incrementAndGet() | long incrementAndGet() |
lazySet | lazySet(newValue) | void lazySet(long newValue) |
set | set(newValue) | void set(long newValue) |
setOpaque | setOpaque(newValue) | void setOpaque(long newValue) |
setPlain | setPlain(newValue) | void setPlain(long newValue) |
setRelease | setRelease(newValue) | void setRelease(long newValue) |
updateAndGet | updateAndGet(updateFunction) | long updateAndGet(LongUnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(expectedValue,newValue) | boolean weakCompareAndSet(long expectedValue, long newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(expectedValue,newValue) | boolean weakCompareAndSetAcquire(long expectedValue, long newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(expectedValue,newValue) | boolean weakCompareAndSetPlain(long expectedValue, long newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(expectedValue,newValue) | boolean weakCompareAndSetRelease(long expectedValue, long newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(expectedValue,newValue) | boolean weakCompareAndSetVolatile(long expectedValue, long newValue) |
The methods and fields of Number are inherited.
AtomicLongArray#
class · extends Object · java.util.concurrent.atomic.AtomicLongArray
Implements: Serializable
Constructors
new AtomicLongArray(int length) |
new AtomicLongArray(long[] array) |
Ring: new AtomicLongArray(args) uses the constructor with the fewest parameters (at least one); new AtomicLongArray makes the object with the constructor without parameters; the others: (new AtomicLongArray).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(i) | long get(int i) |
accumulateAndGet | accumulateAndGet(i,x,accumulatorFunction) | long accumulateAndGet(int i, long x, LongBinaryOperator accumulatorFunction) |
addAndGet | addAndGet(i,delta) | long addAndGet(int i, long delta) |
compareAndExchange | compareAndExchange(i,expectedValue,newValue) | long compareAndExchange(int i, long expectedValue, long newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(i,expectedValue,newValue) | long compareAndExchangeAcquire(int i, long expectedValue, long newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(i,expectedValue,newValue) | long compareAndExchangeRelease(int i, long expectedValue, long newValue) |
compareAndSet | compareAndSet(i,expectedValue,newValue) | boolean compareAndSet(int i, long expectedValue, long newValue) |
decrementAndGet | decrementAndGet(i) | long decrementAndGet(int i) |
getAcquire | getAcquire(i) | long getAcquire(int i) |
getAndAccumulate | getAndAccumulate(i,x,accumulatorFunction) | long getAndAccumulate(int i, long x, LongBinaryOperator accumulatorFunction) |
getAndAdd | getAndAdd(i,delta) | long getAndAdd(int i, long delta) |
getAndDecrement | getAndDecrement(i) | long getAndDecrement(int i) |
getAndIncrement | getAndIncrement(i) | long getAndIncrement(int i) |
getAndSet | getAndSet(i,newValue) | long getAndSet(int i, long newValue) |
getAndUpdate | getAndUpdate(i,updateFunction) | long getAndUpdate(int i, LongUnaryOperator updateFunction) |
getOpaque | getOpaque(i) | long getOpaque(int i) |
getPlain | getPlain(i) | long getPlain(int i) |
incrementAndGet | incrementAndGet(i) | long incrementAndGet(int i) |
lazySet | lazySet(i,newValue) | void lazySet(int i, long newValue) |
length | length() | int length() |
set | set(i,newValue) | void set(int i, long newValue) |
setOpaque | setOpaque(i,newValue) | void setOpaque(int i, long newValue) |
setPlain | setPlain(i,newValue) | void setPlain(int i, long newValue) |
setRelease | setRelease(i,newValue) | void setRelease(int i, long newValue) |
updateAndGet | updateAndGet(i,updateFunction) | long updateAndGet(int i, LongUnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(i,expectedValue,newValue) | boolean weakCompareAndSet(int i, long expectedValue, long newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(i,expectedValue,newValue) | boolean weakCompareAndSetAcquire(int i, long expectedValue, long newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(i,expectedValue,newValue) | boolean weakCompareAndSetPlain(int i, long expectedValue, long newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(i,expectedValue,newValue) | boolean weakCompareAndSetRelease(int i, long expectedValue, long newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(i,expectedValue,newValue) | boolean weakCompareAndSetVolatile(int i, long expectedValue, long newValue) |
The methods and fields of Object are inherited.
AtomicLongFieldUpdater#
abstract · extends Object · java.util.concurrent.atomic.AtomicLongFieldUpdater
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(obj) | long get(Object obj) |
accumulateAndGet | accumulateAndGet(obj,x,accumulatorFunction) | long accumulateAndGet(Object obj, long x, LongBinaryOperator accumulatorFunction) |
addAndGet | addAndGet(obj,delta) | long addAndGet(Object obj, long delta) |
compareAndSet | compareAndSet(obj,expect,update) | boolean compareAndSet(Object obj, long expect, long update) |
decrementAndGet | decrementAndGet(obj) | long decrementAndGet(Object obj) |
getAndAccumulate | getAndAccumulate(obj,x,accumulatorFunction) | long getAndAccumulate(Object obj, long x, LongBinaryOperator accumulatorFunction) |
getAndAdd | getAndAdd(obj,delta) | long getAndAdd(Object obj, long delta) |
getAndDecrement | getAndDecrement(obj) | long getAndDecrement(Object obj) |
getAndIncrement | getAndIncrement(obj) | long getAndIncrement(Object obj) |
getAndSet | getAndSet(obj,newValue) | long getAndSet(Object obj, long newValue) |
getAndUpdate | getAndUpdate(obj,updateFunction) | long getAndUpdate(Object obj, LongUnaryOperator updateFunction) |
incrementAndGet | incrementAndGet(obj) | long incrementAndGet(Object obj) |
lazySet | lazySet(obj,newValue) | void lazySet(Object obj, long newValue) |
newUpdater | newUpdater(tclass,fieldName) | static AtomicLongFieldUpdater newUpdater(Class tclass, String fieldName) |
set | set(obj,newValue) | void set(Object obj, long newValue) |
updateAndGet | updateAndGet(obj,updateFunction) | long updateAndGet(Object obj, LongUnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(obj,expect,update) | boolean weakCompareAndSet(Object obj, long expect, long update) |
The methods and fields of Object are inherited.
AtomicMarkableReference#
class · extends Object · java.util.concurrent.atomic.AtomicMarkableReference
Constructors
new AtomicMarkableReference(Object initialRef, boolean initialMark) |
Ring: new AtomicMarkableReference(args) uses the constructor with the fewest parameters (at least one); new AtomicMarkableReference makes the object with the constructor without parameters; the others: (new AtomicMarkableReference).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(markHolder) | Object get(boolean[] markHolder) |
attemptMark | attemptMark(expectedReference,newMark) | boolean attemptMark(Object expectedReference, boolean newMark) |
compareAndSet | compareAndSet(expectedReference,newReference,expectedMark,newMark) | boolean compareAndSet(Object expectedReference, Object newReference, boolean expectedMark, boolean newMark) |
getReference | getReference() | Object getReference() |
isMarked | isMarked() | boolean isMarked() |
set | set(newReference,newMark) | void set(Object newReference, boolean newMark) |
weakCompareAndSet | weakCompareAndSet(expectedReference,newReference,expectedMark,newMark) | boolean weakCompareAndSet(Object expectedReference, Object newReference, boolean expectedMark, boolean newMark) |
The methods and fields of Object are inherited.
AtomicReference#
class · extends Object · java.util.concurrent.atomic.AtomicReference
Implements: Serializable
Constructors
new AtomicReference() |
new AtomicReference(Object initialValue) |
Ring: new AtomicReference(args) uses the constructor with the fewest parameters (at least one); new AtomicReference makes the object with the constructor without parameters; the others: (new AtomicReference).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | Object get() |
accumulateAndGet | accumulateAndGet(x,accumulatorFunction) | Object accumulateAndGet(Object x, BinaryOperator accumulatorFunction) |
compareAndExchange | compareAndExchange(expectedValue,newValue) | Object compareAndExchange(Object expectedValue, Object newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(expectedValue,newValue) | Object compareAndExchangeAcquire(Object expectedValue, Object newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(expectedValue,newValue) | Object compareAndExchangeRelease(Object expectedValue, Object newValue) |
compareAndSet | compareAndSet(expectedValue,newValue) | boolean compareAndSet(Object expectedValue, Object newValue) |
getAcquire | getAcquire() | Object getAcquire() |
getAndAccumulate | getAndAccumulate(x,accumulatorFunction) | Object getAndAccumulate(Object x, BinaryOperator accumulatorFunction) |
getAndSet | getAndSet(newValue) | Object getAndSet(Object newValue) |
getAndUpdate | getAndUpdate(updateFunction) | Object getAndUpdate(UnaryOperator updateFunction) |
getOpaque | getOpaque() | Object getOpaque() |
getPlain | getPlain() | Object getPlain() |
lazySet | lazySet(newValue) | void lazySet(Object newValue) |
set | set(newValue) | void set(Object newValue) |
setOpaque | setOpaque(newValue) | void setOpaque(Object newValue) |
setPlain | setPlain(newValue) | void setPlain(Object newValue) |
setRelease | setRelease(newValue) | void setRelease(Object newValue) |
updateAndGet | updateAndGet(updateFunction) | Object updateAndGet(UnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(expectedValue,newValue) | boolean weakCompareAndSet(Object expectedValue, Object newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(expectedValue,newValue) | boolean weakCompareAndSetAcquire(Object expectedValue, Object newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(expectedValue,newValue) | boolean weakCompareAndSetPlain(Object expectedValue, Object newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(expectedValue,newValue) | boolean weakCompareAndSetRelease(Object expectedValue, Object newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(expectedValue,newValue) | boolean weakCompareAndSetVolatile(Object expectedValue, Object newValue) |
The methods and fields of Object are inherited.
AtomicReferenceArray#
class · extends Object · java.util.concurrent.atomic.AtomicReferenceArray
Implements: Serializable
Constructors
new AtomicReferenceArray(int length) |
new AtomicReferenceArray(Object[] length) |
Ring: new AtomicReferenceArray(args) uses the constructor with the fewest parameters (at least one); new AtomicReferenceArray makes the object with the constructor without parameters; the others: (new AtomicReferenceArray).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(i) | Object get(int i) |
accumulateAndGet | accumulateAndGet(i,x,accumulatorFunction) | Object accumulateAndGet(int i, Object x, BinaryOperator accumulatorFunction) |
compareAndExchange | compareAndExchange(i,expectedValue,newValue) | Object compareAndExchange(int i, Object expectedValue, Object newValue) |
compareAndExchangeAcquire | compareAndExchangeAcquire(i,expectedValue,newValue) | Object compareAndExchangeAcquire(int i, Object expectedValue, Object newValue) |
compareAndExchangeRelease | compareAndExchangeRelease(i,expectedValue,newValue) | Object compareAndExchangeRelease(int i, Object expectedValue, Object newValue) |
compareAndSet | compareAndSet(i,expectedValue,newValue) | boolean compareAndSet(int i, Object expectedValue, Object newValue) |
getAcquire | getAcquire(i) | Object getAcquire(int i) |
getAndAccumulate | getAndAccumulate(i,x,accumulatorFunction) | Object getAndAccumulate(int i, Object x, BinaryOperator accumulatorFunction) |
getAndSet | getAndSet(i,newValue) | Object getAndSet(int i, Object newValue) |
getAndUpdate | getAndUpdate(i,updateFunction) | Object getAndUpdate(int i, UnaryOperator updateFunction) |
getOpaque | getOpaque(i) | Object getOpaque(int i) |
getPlain | getPlain(i) | Object getPlain(int i) |
lazySet | lazySet(i,newValue) | void lazySet(int i, Object newValue) |
length | length() | int length() |
set | set(i,newValue) | void set(int i, Object newValue) |
setOpaque | setOpaque(i,newValue) | void setOpaque(int i, Object newValue) |
setPlain | setPlain(i,newValue) | void setPlain(int i, Object newValue) |
setRelease | setRelease(i,newValue) | void setRelease(int i, Object newValue) |
updateAndGet | updateAndGet(i,updateFunction) | Object updateAndGet(int i, UnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(i,expectedValue,newValue) | boolean weakCompareAndSet(int i, Object expectedValue, Object newValue) |
weakCompareAndSetAcquire | weakCompareAndSetAcquire(i,expectedValue,newValue) | boolean weakCompareAndSetAcquire(int i, Object expectedValue, Object newValue) |
weakCompareAndSetPlain | weakCompareAndSetPlain(i,expectedValue,newValue) | boolean weakCompareAndSetPlain(int i, Object expectedValue, Object newValue) |
weakCompareAndSetRelease | weakCompareAndSetRelease(i,expectedValue,newValue) | boolean weakCompareAndSetRelease(int i, Object expectedValue, Object newValue) |
weakCompareAndSetVolatile | weakCompareAndSetVolatile(i,expectedValue,newValue) | boolean weakCompareAndSetVolatile(int i, Object expectedValue, Object newValue) |
The methods and fields of Object are inherited.
AtomicReferenceFieldUpdater#
abstract · extends Object · java.util.concurrent.atomic.AtomicReferenceFieldUpdater
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(obj) | Object get(Object obj) |
accumulateAndGet | accumulateAndGet(obj,x,accumulatorFunction) | Object accumulateAndGet(Object obj, Object x, BinaryOperator accumulatorFunction) |
compareAndSet | compareAndSet(obj,expect,update) | boolean compareAndSet(Object obj, Object expect, Object update) |
getAndAccumulate | getAndAccumulate(obj,x,accumulatorFunction) | Object getAndAccumulate(Object obj, Object x, BinaryOperator accumulatorFunction) |
getAndSet | getAndSet(obj,newValue) | Object getAndSet(Object obj, Object newValue) |
getAndUpdate | getAndUpdate(obj,updateFunction) | Object getAndUpdate(Object obj, UnaryOperator updateFunction) |
lazySet | lazySet(obj,newValue) | void lazySet(Object obj, Object newValue) |
newUpdater | newUpdater(tclass,vclass,fieldName) | static AtomicReferenceFieldUpdater newUpdater(Class tclass, Class vclass, String fieldName) |
set | set(obj,newValue) | void set(Object obj, Object newValue) |
updateAndGet | updateAndGet(obj,updateFunction) | Object updateAndGet(Object obj, UnaryOperator updateFunction) |
weakCompareAndSet | weakCompareAndSet(obj,expect,update) | boolean weakCompareAndSet(Object obj, Object expect, Object update) |
The methods and fields of Object are inherited.
AtomicStampedReference#
class · extends Object · java.util.concurrent.atomic.AtomicStampedReference
Constructors
new AtomicStampedReference(Object initialRef, int initialStamp) |
Ring: new AtomicStampedReference(args) uses the constructor with the fewest parameters (at least one); new AtomicStampedReference makes the object with the constructor without parameters; the others: (new AtomicStampedReference).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(stampHolder) | Object get(int[] stampHolder) |
attemptStamp | attemptStamp(expectedReference,newStamp) | boolean attemptStamp(Object expectedReference, int newStamp) |
compareAndSet | compareAndSet(expectedReference,newReference,expectedStamp,newStamp) | boolean compareAndSet(Object expectedReference, Object newReference, int expectedStamp, int newStamp) |
getReference | getReference() | Object getReference() |
getStamp | getStamp() | int getStamp() |
set | set(newReference,newStamp) | void set(Object newReference, int newStamp) |
weakCompareAndSet | weakCompareAndSet(expectedReference,newReference,expectedStamp,newStamp) | boolean weakCompareAndSet(Object expectedReference, Object newReference, int expectedStamp, int newStamp) |
The methods and fields of Object are inherited.
DoubleAccumulator#
class · extends Number · java.util.concurrent.atomic.DoubleAccumulator
Implements: Serializable
Constructors
new DoubleAccumulator(DoubleBinaryOperator accumulatorFunction, double identity) |
Ring: new DoubleAccumulator(args) uses the constructor with the fewest parameters (at least one); new DoubleAccumulator makes the object with the constructor without parameters; the others: (new DoubleAccumulator).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | double get() |
accumulate | accumulate(x) | void accumulate(double x) |
getThenReset | getThenReset() | double getThenReset() |
reset | reset() | void reset() |
The methods and fields of Number are inherited.
DoubleAdder#
class · extends Number · java.util.concurrent.atomic.DoubleAdder
Implements: Serializable
Constructors
new DoubleAdder() |
Ring: new DoubleAdder(args) uses the constructor with the fewest parameters (at least one); new DoubleAdder makes the object with the constructor without parameters; the others: (new DoubleAdder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
add | add(x) | void add(double x) |
reset | reset() | void reset() |
sum | sum() | double sum() |
sumThenReset | sumThenReset() | double sumThenReset() |
The methods and fields of Number are inherited.
LongAccumulator#
class · extends Number · java.util.concurrent.atomic.LongAccumulator
Implements: Serializable
Constructors
new LongAccumulator(LongBinaryOperator accumulatorFunction, long identity) |
Ring: new LongAccumulator(args) uses the constructor with the fewest parameters (at least one); new LongAccumulator makes the object with the constructor without parameters; the others: (new LongAccumulator).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | long get() |
accumulate | accumulate(x) | void accumulate(long x) |
getThenReset | getThenReset() | long getThenReset() |
reset | reset() | void reset() |
The methods and fields of Number are inherited.
LongAdder#
class · extends Number · java.util.concurrent.atomic.LongAdder
Implements: Serializable
Constructors
new LongAdder() |
Ring: new LongAdder(args) uses the constructor with the fewest parameters (at least one); new LongAdder makes the object with the constructor without parameters; the others: (new LongAdder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
add | add(x) | void add(long x) |
decrement | decrement() | void decrement() |
increment | increment() | void increment() |
reset | reset() | void reset() |
sum | sum() | long sum() |
sumThenReset | sumThenReset() | long sumThenReset() |
The methods and fields of Number are inherited.