Class AtomicReference<T>
Inheritance
System.Object
AtomicReference<T>
Assembly: Steeltoe.Common.Abstractions.dll
Syntax
public class AtomicReference<T> : object where T : class
Type Parameters
Constructors
|
Edit this page
View Source
AtomicReference()
Declaration
|
Edit this page
View Source
AtomicReference(T)
Declaration
public AtomicReference(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Properties
|
Edit this page
View Source
Value
Declaration
public T Value { get; set; }
Property Value
Methods
|
Edit this page
View Source
CompareAndSet(T, T)
Declaration
public bool CompareAndSet(T expected, T update)
Parameters
Type |
Name |
Description |
T |
expected |
|
T |
update |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
GetAndSet(T)
Declaration
public T GetAndSet(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns