public class ClientAtomicLongImpl extends Object implements ClientAtomicLong
| Constructor and Description |
|---|
ClientAtomicLongImpl(String name,
@Nullable String groupName,
org.apache.ignite.internal.client.thin.ReliableChannel ch)
Constructor.
|
| 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.
|
public String name()
name in interface ClientAtomicLongpublic long get()
throws IgniteException
get in interface ClientAtomicLongIgniteExceptionpublic long incrementAndGet()
throws IgniteException
incrementAndGet in interface ClientAtomicLongIgniteExceptionpublic long getAndIncrement()
throws IgniteException
getAndIncrement in interface ClientAtomicLongIgniteExceptionpublic long addAndGet(long l)
throws IgniteException
l and gets current value of atomic long.addAndGet in interface ClientAtomicLongl - Number which will be added.IgniteExceptionpublic long getAndAdd(long l)
throws IgniteException
l.getAndAdd in interface ClientAtomicLongl - Number which will be added.IgniteExceptionpublic long decrementAndGet()
throws IgniteException
decrementAndGet in interface ClientAtomicLongIgniteExceptionpublic long getAndDecrement()
throws IgniteException
getAndDecrement in interface ClientAtomicLongIgniteExceptionpublic long getAndSet(long l)
throws IgniteException
l of atomic long.getAndSet in interface ClientAtomicLongl - New value of atomic long.IgniteExceptionpublic boolean compareAndSet(long expVal,
long newVal)
throws IgniteException
compareAndSet in interface ClientAtomicLongexpVal - 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.IgniteExceptionpublic boolean removed()
removed in interface ClientAtomicLongtrue if atomic was removed from cache, false in other case.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface ClientAtomicLong
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023