Android Guides | Samples

Java.Util.Concurrent.Atomic.AtomicStampedReference Class

An AtomicStampedReference maintains an object reference along with an integer "stamp", that can be updated atomically.

See Also: AtomicStampedReference

Syntax

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

Remarks

An AtomicStampedReference maintains an object reference along with an integer "stamp", that can be updated atomically.

Implementation note: This implementation maintains stamped references by creating internal objects representing "boxed" [reference, integer] pairs.

[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.AtomicStampedReference are listed below.

See Also: Object

Public Constructors

Protected Constructors

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

Public Properties

[read-only]
ReferenceObject. Returns the current value of the reference.
[read-only]
StampInt32. Returns the current value of the stamp.

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

AttemptStamp(Object, Int32) : Boolean
CompareAndSet(Object, Object, Int32, Int32) : Boolean
Get(Int32[]) : Object
Returns the current values of both the reference and the stamp.
Set(Object, Int32)
WeakCompareAndSet(Object, Object, Int32, Int32) : Boolean