Android Guides | Samples

Java.Util.Concurrent.Atomic.AtomicLongArray Class

A long array in which elements may be updated atomically.

See Also: AtomicLongArray

Syntax

[Android.Runtime.Register("java/util/concurrent/atomic/AtomicLongArray", DoNotGenerateAcw=true)]
public class AtomicLongArray : Object, ISerializable, IDisposable

Remarks

A long array in which elements may be updated atomically. See the Java.Util.Concurrent.Atomic package specification for description of the properties of atomic variables.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent.Atomic
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Util.Concurrent.Atomic.AtomicLongArray are listed below.

See Also: Object

Public Constructors

Creates a new AtomicLongArray of the given length, with all elements initially zero.
Creates a new AtomicLongArray with the same length as, and all elements copied from, the given array.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddAndGet(Int32, Int64) : Int64
Atomically adds the given value to the element at index i.
CompareAndSet(Int32, Int64, Int64) : Boolean
Atomically sets the element at position i to the given updated value if the current value == the expected value.
DecrementAndGet(Int32) : Int64
Atomically decrements by one the element at index i.
Get(Int32) : Int64
Gets the current value at position i.
GetAndAdd(Int32, Int64) : Int64
Atomically adds the given value to the element at index i.
GetAndDecrement(Int32) : Int64
Atomically decrements by one the element at index i.
GetAndIncrement(Int32) : Int64
Atomically increments by one the element at index i.
GetAndSet(Int32, Int64) : Int64
Atomically sets the element at position i to the given value and returns the old value.
IncrementAndGet(Int32) : Int64
Atomically increments by one the element at index i.
LazySet(Int32, Int64)
Eventually sets the element at position i to the given value.
Length() : Int32
Returns the length of the array.
Set(Int32, Int64)
Sets the element at position i to the given value.
WeakCompareAndSet(Int32, Int64, Int64) : Boolean
Atomically sets the element at position i to the given updated value if the current value == the expected value.