Table of Contents

Class AtomicReferenceFieldUpdater<T, V>

Namespace
Java.Util.Concurrent.Atomic
Assembly
MASES.JNet.dll
public class AtomicReferenceFieldUpdater<T, V> : JVMBridgeBase<AtomicReferenceFieldUpdater<T, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

T
V
Inheritance
AtomicReferenceFieldUpdater<T, V>
Implements
Inherited Members
Extension Methods

Constructors

AtomicReferenceFieldUpdater()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("AtomicReferenceFieldUpdater class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AtomicReferenceFieldUpdater()

AtomicReferenceFieldUpdater(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("AtomicReferenceFieldUpdater class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AtomicReferenceFieldUpdater(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AccumulateAndGet(T, V, BinaryOperator<V>)

public V AccumulateAndGet(T arg0, V arg1, BinaryOperator<V> arg2)

Parameters

arg0 T

T

arg1 V

V

arg2 BinaryOperator<V>

BinaryOperator

Returns

V

V

CompareAndSet(T, V, V)

public bool CompareAndSet(T arg0, V arg1, V arg2)

Parameters

arg0 T

T

arg1 V

V

arg2 V

V

Returns

bool

bool

Get(T)

public V Get(T arg0)

Parameters

arg0 T

T

Returns

V

V

GetAndAccumulate(T, V, BinaryOperator<V>)

public V GetAndAccumulate(T arg0, V arg1, BinaryOperator<V> arg2)

Parameters

arg0 T

T

arg1 V

V

arg2 BinaryOperator<V>

BinaryOperator

Returns

V

V

GetAndSet(T, V)

public V GetAndSet(T arg0, V arg1)

Parameters

arg0 T

T

arg1 V

V

Returns

V

V

GetAndUpdate(T, UnaryOperator<V>)

public V GetAndUpdate(T arg0, UnaryOperator<V> arg1)

Parameters

arg0 T

T

arg1 UnaryOperator<V>

UnaryOperator

Returns

V

V

LazySet(T, V)

public void LazySet(T arg0, V arg1)

Parameters

arg0 T

T

arg1 V

V

NewUpdater<U, W>(Class, Class, String)

public static AtomicReferenceFieldUpdater<U, W> NewUpdater<U, W>(Class arg0, Class arg1, String arg2)

Parameters

arg0 Class

Class

arg1 Class

Class

arg2 String

String

Returns

AtomicReferenceFieldUpdater<U, W>

AtomicReferenceFieldUpdater

Type Parameters

U
W

Set(T, V)

public void Set(T arg0, V arg1)

Parameters

arg0 T

T

arg1 V

V

UpdateAndGet(T, UnaryOperator<V>)

public V UpdateAndGet(T arg0, UnaryOperator<V> arg1)

Parameters

arg0 T

T

arg1 UnaryOperator<V>

UnaryOperator

Returns

V

V

WeakCompareAndSet(T, V, V)

public bool WeakCompareAndSet(T arg0, V arg1, V arg2)

Parameters

arg0 T

T

arg1 V

V

arg2 V

V

Returns

bool

bool

Operators

implicit operator AtomicReferenceFieldUpdater(AtomicReferenceFieldUpdater<T, V>)

public static implicit operator AtomicReferenceFieldUpdater(AtomicReferenceFieldUpdater<T, V> t)

Parameters

t AtomicReferenceFieldUpdater<T, V>

Returns

AtomicReferenceFieldUpdater