public interface IgniteAtomicReference<T> extends Closeable
get()
gets current value of an atomic reference.
set(Object)
unconditionally sets the value in the an atomic reference.
compareAndSet(...)
conditionally set the value in the an atomic reference.
name()
gets name of atomic reference.
Modifier and Type | Method and Description |
---|---|
void |
close()
Removes this atomic reference.
|
boolean |
compareAndSet(T expVal,
T newVal)
Conditionally sets the new value.
|
T |
get()
Gets current value of an atomic reference.
|
String |
name()
Name of atomic reference.
|
boolean |
removed()
Gets status of atomic.
|
void |
set(T val)
Unconditionally sets the value.
|
String name()
T get() throws IgniteException
IgniteException
- If operation failed.void set(T val) throws IgniteException
val
- Value.IgniteException
- If operation failed.boolean compareAndSet(T expVal, T newVal) throws IgniteException
expVal
is equal
to current value respectively.expVal
- Expected value.newVal
- New value.true
than value have been updated.IgniteException
- If operation failed.boolean removed()
true
if an atomic reference was removed from cache, false
otherwise.void close()
close
in interface AutoCloseable
close
in interface Closeable
IgniteException
- If operation failed.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024