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
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
AccumulateAndGet(T, V, BinaryOperator<V>)
public V AccumulateAndGet(T arg0, V arg1, BinaryOperator<V> arg2)
Parameters
arg0
TT
arg1
VV
arg2
BinaryOperator<V>
Returns
- V
V
CompareAndSet(T, V, V)
public bool CompareAndSet(T arg0, V arg1, V arg2)
Parameters
arg0
TT
arg1
VV
arg2
VV
Returns
Get(T)
public V Get(T arg0)
Parameters
arg0
TT
Returns
- V
V
GetAndAccumulate(T, V, BinaryOperator<V>)
public V GetAndAccumulate(T arg0, V arg1, BinaryOperator<V> arg2)
Parameters
arg0
TT
arg1
VV
arg2
BinaryOperator<V>
Returns
- V
V
GetAndSet(T, V)
public V GetAndSet(T arg0, V arg1)
Parameters
arg0
TT
arg1
VV
Returns
- V
V
GetAndUpdate(T, UnaryOperator<V>)
public V GetAndUpdate(T arg0, UnaryOperator<V> arg1)
Parameters
arg0
TT
arg1
UnaryOperator<V>
Returns
- V
V
LazySet(T, V)
public void LazySet(T arg0, V arg1)
Parameters
arg0
TT
arg1
VV
NewUpdater<U, W>(Class, Class, String)
public static AtomicReferenceFieldUpdater<U, W> NewUpdater<U, W>(Class arg0, Class arg1, String arg2)
Parameters
Returns
Type Parameters
U
W
Set(T, V)
public void Set(T arg0, V arg1)
Parameters
arg0
TT
arg1
VV
UpdateAndGet(T, UnaryOperator<V>)
public V UpdateAndGet(T arg0, UnaryOperator<V> arg1)
Parameters
arg0
TT
arg1
UnaryOperator<V>
Returns
- V
V
WeakCompareAndSet(T, V, V)
public bool WeakCompareAndSet(T arg0, V arg1, V arg2)
Parameters
arg0
TT
arg1
VV
arg2
VV
Returns
Operators
implicit operator AtomicReferenceFieldUpdater(AtomicReferenceFieldUpdater<T, V>)
Converter from AtomicReferenceFieldUpdater<T, V> to AtomicReferenceFieldUpdater
public static implicit operator AtomicReferenceFieldUpdater(AtomicReferenceFieldUpdater<T, V> t)
Parameters
t
AtomicReferenceFieldUpdater<T, V>