public interface IgniteAtomicStamped<T,S> extends Closeable
get()
gets both value and stamp of atomic.
value()
gets current value of atomic.
stamp()
gets current stamp of atomic.
set(Object, Object)
unconditionally sets the value
and the stamp in the atomic.
compareAndSet(...)
conditionally set the value
and the stamp in the atomic.
name()
gets name of atomic stamped.
Modifier and Type | Method and Description |
---|---|
void |
close()
Removes this atomic stamped.
|
boolean |
compareAndSet(T expVal,
T newVal,
S expStamp,
S newStamp)
Conditionally sets the new value and new stamp.
|
IgniteBiTuple<T,S> |
get()
Gets both current value and current stamp of atomic stamped.
|
String |
name()
Name of atomic stamped.
|
boolean |
removed()
Gets status of atomic.
|
void |
set(T val,
S stamp)
Unconditionally sets the value and the stamp.
|
S |
stamp()
Gets current stamp.
|
T |
value()
Gets current value.
|
String name()
IgniteBiTuple<T,S> get() throws IgniteException
IgniteException
- If operation failed.void set(T val, S stamp) throws IgniteException
val
- Value.stamp
- Stamp.IgniteException
- If operation failed.boolean compareAndSet(T expVal, T newVal, S expStamp, S newStamp) throws IgniteException
expVal
and expStamp
are equal to current value and current stamp respectively.expVal
- Expected value.newVal
- New value.expStamp
- Expected stamp.newStamp
- New stamp.true
than value and stamp will be updated.IgniteException
- If operation failed.S stamp() throws IgniteException
IgniteException
- If operation failed.T value() throws IgniteException
IgniteException
- If operation failed.boolean removed()
true
if atomic stamped was removed from cache, false
otherwise.void close()
close
in interface AutoCloseable
close
in interface Closeable
IgniteException
- If operation failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023