public class PlatformAtomicLong extends PlatformAbstractTarget
FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformAtomicLong(PlatformContext ctx,
GridCacheAtomicLongImpl atomicLong)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
addAndGet(long val)
Adds a value.
|
void |
close()
Removes this atomic long.
|
boolean |
compareAndSet(long cmp,
long val)
Compares two values for equality and, if they are equal, replaces the first value.
|
long |
compareAndSetAndGet(long expVal,
long newVal)
Compares two values for equality and, if they are equal, replaces the first value.
|
long |
decrementAndGet()
Decrements the value.
|
long |
get()
Reads the value.
|
long |
getAndAdd(long val)
Adds a value.
|
long |
getAndDecrement()
Decrements the value.
|
long |
getAndIncrement()
Increments the value.
|
long |
getAndSet(long val)
Gets current value of atomic long and sets new value
|
long |
incrementAndGet()
Increments the value.
|
boolean |
isClosed()
Gets status of atomic.
|
convertException, currentFuture, futureWriter, inObjectStreamOutStream, inStreamOutLong, inStreamOutObject, inStreamOutStream, listenFuture, listenFutureAndGet, listenFutureForOperation, listenFutureForOperationAndGet, outLong, outObject, outStream, platformContext, processInObjectStreamOutStream, processInStreamOutLong, processInStreamOutObject, processInStreamOutStream, processOutLong, processOutObject, processOutStream, throwUnsupportedpublic PlatformAtomicLong(PlatformContext ctx, GridCacheAtomicLongImpl atomicLong)
ctx - Context.atomicLong - AtomicLong to wrap.public long get()
public long incrementAndGet()
public long getAndIncrement()
public long addAndGet(long val)
public long getAndAdd(long val)
public long decrementAndGet()
public long getAndDecrement()
public long getAndSet(long val)
public long compareAndSetAndGet(long expVal,
long newVal)
public boolean compareAndSet(long cmp,
long val)
public boolean isClosed()
true if atomic was removed from cache, false in other case.public void close()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016