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)Atomically adds the given value to the current value. | 
| void | alter(IFunction<Long,Long> function)Alters the currently stored value by applying a function on it. | 
| long | alterAndGet(IFunction<Long,Long> function)Alters the currently stored value by applying a function on it and gets the result. | 
| <R> R | apply(IFunction<Long,R> function)Applies a function on the value, the actual stored value will not change. | 
| boolean | compareAndSet(long expect,
             long update)Atomically sets the value to the given updated value
 only if the current value  ==the expected value. | 
| long | decrementAndGet()Atomically decrements the current value by one. | 
| long | get()Gets the current value. | 
| long | getAndAdd(long delta)Atomically adds the given value to the current value. | 
| long | getAndAlter(IFunction<Long,Long> function)Alters the currently stored value by applying a function on it on and gets the old value. | 
| long | getAndIncrement()Atomically increments the current value by one. | 
| long | getAndSet(long newValue)Atomically sets the given value and returns the old value. | 
| long | incrementAndGet()Atomically increments the current value by one. | 
| protected ClientMessage | invokeOnPartition(ClientMessage req) | 
| protected <T> T | invokeOnPartitionInterruptibly(ClientMessage clientMessage) | 
| protected void | onInitialize()Called when proxy is created. | 
| void | set(long newValue)Atomically sets the given value. | 
| 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)
IAtomicLongapply in interface IAtomicLongfunction - the function applied to the value, the value is not changedpublic void alter(IFunction<Long,Long> function)
IAtomicLongalter in interface IAtomicLongfunction - the function applied to the currently stored valuepublic long alterAndGet(IFunction<Long,Long> function)
IAtomicLongalterAndGet in interface IAtomicLongfunction - the function applied to the currently stored valuepublic long getAndAlter(IFunction<Long,Long> function)
IAtomicLonggetAndAlter in interface IAtomicLongfunction - the function applied to the currently stored valuepublic long addAndGet(long delta)
IAtomicLongaddAndGet in interface IAtomicLongdelta - the value to add to the current valuepublic boolean compareAndSet(long expect,
                    long update)
IAtomicLong== the expected value.compareAndSet in interface IAtomicLongexpect - the expected valueupdate - the new valuepublic long decrementAndGet()
IAtomicLongdecrementAndGet in interface IAtomicLongpublic long get()
IAtomicLongget in interface IAtomicLongpublic long getAndAdd(long delta)
IAtomicLonggetAndAdd in interface IAtomicLongdelta - the value to add to the current valuepublic long getAndSet(long newValue)
IAtomicLonggetAndSet in interface IAtomicLongnewValue - the new valuepublic long incrementAndGet()
IAtomicLongincrementAndGet in interface IAtomicLongpublic long getAndIncrement()
IAtomicLonggetAndIncrement in interface IAtomicLongpublic void set(long newValue)
IAtomicLongset in interface IAtomicLongnewValue - the new valueprotected void onInitialize()
ClientProxyonInitialize in class ClientProxyprotected ClientMessage invokeOnPartition(ClientMessage req)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage) throws InterruptedException
InterruptedExceptionCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.