Android Guides | Samples

Java.Util.Concurrent.Atomic.AtomicReferenceArray Class

An array of object references in which elements may be updated atomically.

See Also: AtomicReferenceArray

Syntax

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

Remarks

An array of object references 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.AtomicReferenceArray are listed below.

See Also: Object

Public Constructors

Creates a new AtomicReferenceArray of the given length, with all elements initially null.

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

CompareAndSet(Int32, Object, Object) : Boolean
Get(Int32) : Object
Gets the current value at position i.
GetAndSet(Int32, Object) : Object
LazySet(Int32, Object)
Length() : Int32
Returns the length of the array.
Set(Int32, Object)
WeakCompareAndSet(Int32, Object, Object) : Boolean