public class ClientAtomicLongProxy extends ClientProxy implements IAtomicLong
name| Constructor and Description |
|---|
ClientAtomicLongProxy(String serviceName,
String objectId) |
| Modifier and Type | Method and Description |
|---|---|
long |
addAndGet(long delta) |
void |
alter(IFunction<Long,Long> function) |
long |
alterAndGet(IFunction<Long,Long> function) |
<R> R |
apply(IFunction<Long,R> function) |
boolean |
compareAndSet(long expect,
long update) |
long |
decrementAndGet() |
long |
get() |
long |
getAndAdd(long delta) |
long |
getAndAlter(IFunction<Long,Long> function) |
long |
getAndIncrement() |
long |
getAndSet(long newValue) |
long |
incrementAndGet() |
protected ClientMessage |
invokeOnPartition(ClientMessage req) |
protected <T> T |
invokeOnPartitionInterruptibly(ClientMessage clientMessage) |
protected void |
onInitialize()
Called when proxy is created.
|
void |
set(long newValue) |
String |
toString() |
deregisterListener, destroy, equals, getClient, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, registerListener, setContext, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNamedestroy, getPartitionKey, getServiceNamepublic <R> R apply(IFunction<Long,R> function)
apply in interface IAtomicLongpublic void alter(IFunction<Long,Long> function)
alter in interface IAtomicLongpublic long alterAndGet(IFunction<Long,Long> function)
alterAndGet in interface IAtomicLongpublic long getAndAlter(IFunction<Long,Long> function)
getAndAlter in interface IAtomicLongpublic long addAndGet(long delta)
addAndGet in interface IAtomicLongpublic boolean compareAndSet(long expect,
long update)
compareAndSet in interface IAtomicLongpublic long decrementAndGet()
decrementAndGet in interface IAtomicLongpublic long get()
get in interface IAtomicLongpublic long getAndAdd(long delta)
getAndAdd in interface IAtomicLongpublic long getAndSet(long newValue)
getAndSet in interface IAtomicLongpublic long incrementAndGet()
incrementAndGet in interface IAtomicLongpublic long getAndIncrement()
getAndIncrement in interface IAtomicLongpublic void set(long newValue)
set in interface IAtomicLongprotected void onInitialize()
ClientProxyonInitialize in class ClientProxyprotected ClientMessage invokeOnPartition(ClientMessage req)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage) throws InterruptedException
InterruptedExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.