public interface ClientAtomicLong extends Closeable
get()
gets current value of atomic long.
get..(..)
methods get current value of atomic long
and increase or decrease value of atomic long.
addAndGet(long l)
sums l
with current value of atomic long
and returns result.
incrementAndGet()
increases value of atomic long and returns result.
decrementAndGet()
decreases value of atomic long and returns result.
getAndSet(long l)
gets current value of atomic long and sets l
as value of atomic long.
name()
gets name of atomic long.
Modifier and Type | Method and Description |
---|---|
long |
addAndGet(long l)
Adds
l and gets current value of atomic long. |
void |
close()
Removes this atomic long.
|
boolean |
compareAndSet(long expVal,
long newVal)
Atomically compares current value to the expected value, and if they are equal, sets current value
to new value.
|
long |
decrementAndGet()
Decrements and gets current value of atomic long.
|
long |
get()
Gets current value of atomic long.
|
long |
getAndAdd(long l)
Gets current value of atomic long and adds
l . |
long |
getAndDecrement()
Gets and decrements current value of atomic long.
|
long |
getAndIncrement()
Gets and increments current value of atomic long.
|
long |
getAndSet(long l)
Gets current value of atomic long and sets new value
l of atomic long. |
long |
incrementAndGet()
Increments and gets current value of atomic long.
|
String |
name()
Name of atomic long.
|
boolean |
removed()
Gets status of atomic.
|
String name()
long get() throws IgniteException
IgniteException
long incrementAndGet() throws IgniteException
IgniteException
long getAndIncrement() throws IgniteException
IgniteException
long addAndGet(long l) throws IgniteException
l
and gets current value of atomic long.l
- Number which will be added.IgniteException
long getAndAdd(long l) throws IgniteException
l
.l
- Number which will be added.IgniteException
long decrementAndGet() throws IgniteException
IgniteException
long getAndDecrement() throws IgniteException
IgniteException
long getAndSet(long l) throws IgniteException
l
of atomic long.l
- New value of atomic long.IgniteException
boolean compareAndSet(long expVal, long newVal) throws IgniteException
expVal
- Expected atomic long's value.newVal
- New atomic long's value to set if current value equal to expected value.True
if comparison succeeded, false
otherwise.IgniteException
boolean removed()
true
if atomic was removed from cache, false
in other case.void close()
close
in interface AutoCloseable
close
in interface Closeable
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024