Interface IAtomicReference<T>
Represents a named value in the distributed cache.
Namespace: Apache.Ignite.Core.DataStructures
Assembly: Apache.Ignite.Core.dll
Syntax
public interface IAtomicReference<T>Type Parameters
| Name | Description | 
|---|---|
| T | 
Properties
IsClosed
Determines whether this instance was removed from cache.
Declaration
bool IsClosed { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | True if this atomic was removed from cache; otherwise, false. | 
Name
Gets the name of this atomic reference.
Declaration
string Name { get; }Property Value
| Type | Description | 
|---|---|
| System.String | Name of this atomic reference. | 
Methods
Close()
Closes this instance.
Declaration
void Close()CompareExchange(T, T)
Compares current value with specified value for equality and, if they are equal, replaces current value.
Declaration
T CompareExchange(T value, T comparand)Parameters
| Type | Name | Description | 
|---|---|---|
| T | value | The value to set. | 
| T | comparand | The value that is compared to the current value. | 
Returns
| Type | Description | 
|---|---|
| T | Original value of the atomic reference. | 
Read()
Reads current value of an atomic reference.
Declaration
T Read()Returns
| Type | Description | 
|---|---|
| T | Current value of an atomic reference. | 
Write(T)
Writes current value of an atomic reference.
Declaration
void Write(T value)Parameters
| Type | Name | Description | 
|---|---|---|
| T | value | The value to set. |