Java java.util.concurrent.atomic AtomicLongArray fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent.atomic AtomicLongArray fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent.atomic AtomicLongArray.

The text is from its open source code.

Constructor

AtomicLongArray(int length)
Creates a new AtomicLongArray of the given length, with all elements initially zero.
AtomicLongArray(long[] array)
Creates a new AtomicLongArray with the same length as, and all elements copied from, the given array.

Method

longaddAndGet(int i, long delta)
Atomically adds the given value to the element at index i , with memory effects as specified by VarHandle#getAndAdd .
booleancompareAndSet(int i, long expectedValue, long newValue)
Atomically sets the element at index i to newValue if the element's current value == expectedValue , with memory effects as specified by VarHandle#compareAndSet .
longdecrementAndGet(int i)
Atomically decrements the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
longget(int i)
Returns the current value of the element at index i , with memory effects as specified by VarHandle#getVolatile .
longgetAndAdd(int i, long delta)
Atomically adds the given value to the element at index i , with memory effects as specified by VarHandle#getAndAdd .
longgetAndDecrement(int i)
Atomically decrements the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
longgetAndIncrement(int i)
Atomically increments the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
longgetAndSet(int i, long newValue)
Atomically sets the element at index i to newValue and returns the old value, with memory effects as specified by VarHandle#getAndSet .
longincrementAndGet(int i)
Atomically increments the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
voidlazySet(int i, long newValue)
Sets the element at index i to newValue , with memory effects as specified by VarHandle#setRelease .
intlength()
Returns the length of the array.
voidset(int i, long newValue)
Sets the element at index i to newValue , with memory effects as specified by VarHandle#setVolatile .
StringtoString()
Returns the String representation of the current values of array.
booleanweakCompareAndSet(int i, long expectedValue, long newValue)
Possibly atomically sets the element at index i to newValue if the element's current value == expectedValue , with memory effects as specified by VarHandle#weakCompareAndSetPlain .