Apache Ignite.NET
Apache.Ignite.Core.DataStructures.IAtomicLong Interface Reference

Represents a distributed atomic long value. More...

Public Member Functions

long Read ()
 Returns current value. More...
 
long Increment ()
 Increments current value and returns result. More...
 
long Add (long value)
 Adds specified value to the current value and returns result. More...
 
long Decrement ()
 Decrements current value and returns result. More...
 
long Exchange (long value)
 Sets current value to a specified value and returns the original value. More...
 
long CompareExchange (long value, long comparand)
 Compares current value with specified value for equality and, if they are equal, replaces current value. More...
 
bool IsClosed ()
 Determines whether this instance was removed from cache. More...
 
void Close ()
 Closes this instance. More...
 

Properties

string Name [get]
 Gets the name of this atomic long. More...
 

Detailed Description

Member Function Documentation

long Apache.Ignite.Core.DataStructures.IAtomicLong.Add ( long  value)
Parameters
valueThe value to add.
Returns
Current value of the atomic long.
void Apache.Ignite.Core.DataStructures.IAtomicLong.Close ( )
long Apache.Ignite.Core.DataStructures.IAtomicLong.CompareExchange ( long  value,
long  comparand 
)
Parameters
valueThe value to set.
comparandThe value that is compared to the current value.
Returns
Original value of the atomic long.
long Apache.Ignite.Core.DataStructures.IAtomicLong.Decrement ( )
Returns
Current value of the atomic long.
long Apache.Ignite.Core.DataStructures.IAtomicLong.Exchange ( long  value)
Parameters
valueThe value to set.
Returns
Original value of the atomic long.
long Apache.Ignite.Core.DataStructures.IAtomicLong.Increment ( )
Returns
Current value of the atomic long.
bool Apache.Ignite.Core.DataStructures.IAtomicLong.IsClosed ( )
Returns
True if this atomic was removed from cache; otherwise, false.
long Apache.Ignite.Core.DataStructures.IAtomicLong.Read ( )
Returns
Current value of the atomic long.

Property Documentation

string Apache.Ignite.Core.DataStructures.IAtomicLong.Name
get

Name of this atomic long.