| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.spi.AbstractDistributedObject<AtomicLongService>
com.hazelcast.concurrent.atomiclong.AtomicLongProxy
public class AtomicLongProxy
| Field Summary | 
|---|
| Fields inherited from class com.hazelcast.spi.AbstractDistributedObject | 
|---|
| PARTITIONING_STRATEGY | 
| Constructor Summary | |
|---|---|
| AtomicLongProxy(String name,
                NodeEngine nodeEngine,
                AtomicLongService service) | |
| Method Summary | ||
|---|---|---|
|  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. | |
| 
 | apply(IFunction<Long,R> function)Applies a function on the value, the actual stored value will not change. | |
|  InternalCompletableFuture<Long> | asyncAddAndGet(long delta)Atomically adds the given value to the current value. | |
|  InternalCompletableFuture<Void> | asyncAlter(IFunction<Long,Long> function)Alters the currently stored value by applying a function on it. | |
|  InternalCompletableFuture<Long> | asyncAlterAndGet(IFunction<Long,Long> function)Alters the currently stored value by applying a function on it and gets the result. | |
| 
 | asyncApply(IFunction<Long,R> function)Applies a function on the value, the actual stored value will not change. | |
|  InternalCompletableFuture<Boolean> | asyncCompareAndSet(long expect,
                   long update)Atomically sets the value to the given updated value only if the current value ==the expected value. | |
|  InternalCompletableFuture<Long> | asyncDecrementAndGet()Atomically decrements the current value by one. | |
|  InternalCompletableFuture<Long> | asyncGet()Gets the current value. | |
|  InternalCompletableFuture<Long> | asyncGetAndAdd(long delta)Atomically adds the given value to the current value. | |
|  InternalCompletableFuture<Long> | asyncGetAndAlter(IFunction<Long,Long> function)Alters the currently stored value by applying a function on it on and gets the old value. | |
|  InternalCompletableFuture<Long> | asyncGetAndIncrement()Atomically increments the current value by one. | |
|  InternalCompletableFuture<Long> | asyncGetAndSet(long newValue)Atomically sets the given value and returns the old value. | |
|  InternalCompletableFuture<Long> | asyncIncrementAndGet()Atomically increments the current value by one. | |
|  InternalCompletableFuture<Void> | asyncSet(long newValue)Atomically sets the given value. | |
|  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. | |
|  String | getName()Returns the name of this IAtomicLong instance. | |
|  int | getPartitionId() | |
|  String | getServiceName()Returns the service name for this object. | |
|  long | incrementAndGet()Atomically increments the current value by one. | |
|  void | set(long newValue)Atomically sets the given value. | |
|  String | toString() | |
| Methods inherited from class com.hazelcast.spi.AbstractDistributedObject | 
|---|
| destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface com.hazelcast.core.DistributedObject | 
|---|
| destroy, getId, getPartitionKey | 
| Constructor Detail | 
|---|
public AtomicLongProxy(String name,
                       NodeEngine nodeEngine,
                       AtomicLongService service)
| Method Detail | 
|---|
public String getName()
IAtomicLong
getName in interface DistributedObjectgetName in interface IAtomicLongpublic int getPartitionId()
public String getServiceName()
DistributedObject
getServiceName in interface DistributedObjectgetServiceName in class AbstractDistributedObject<AtomicLongService>public long addAndGet(long delta)
IAtomicLong
addAndGet in interface IAtomicLongdelta - the value to add to the current value
public InternalCompletableFuture<Long> asyncAddAndGet(long delta)
AsyncAtomicLong
asyncAddAndGet in interface AsyncAtomicLongdelta - the value to add
public boolean compareAndSet(long expect,
                             long update)
IAtomicLong== the expected value.
compareAndSet in interface IAtomicLongexpect - the expected valueupdate - the new value
public InternalCompletableFuture<Boolean> asyncCompareAndSet(long expect,
                                                             long update)
AsyncAtomicLong== the expected value.
asyncCompareAndSet in interface AsyncAtomicLongexpect - the expected valueupdate - the new value
public void set(long newValue)
IAtomicLong
set in interface IAtomicLongnewValue - the new valuepublic InternalCompletableFuture<Void> asyncSet(long newValue)
AsyncAtomicLong
asyncSet in interface AsyncAtomicLongnewValue - the new valuepublic long getAndSet(long newValue)
IAtomicLong
getAndSet in interface IAtomicLongnewValue - the new value
public InternalCompletableFuture<Long> asyncGetAndSet(long newValue)
AsyncAtomicLong
asyncGetAndSet in interface AsyncAtomicLongnewValue - the new value
public long getAndAdd(long delta)
IAtomicLong
getAndAdd in interface IAtomicLongdelta - the value to add to the current value
public InternalCompletableFuture<Long> asyncGetAndAdd(long delta)
AsyncAtomicLong
asyncGetAndAdd in interface AsyncAtomicLongdelta - the value to add
public long decrementAndGet()
IAtomicLong
decrementAndGet in interface IAtomicLongpublic InternalCompletableFuture<Long> asyncDecrementAndGet()
AsyncAtomicLong
asyncDecrementAndGet in interface AsyncAtomicLongpublic long get()
IAtomicLong
get in interface IAtomicLongpublic InternalCompletableFuture<Long> asyncGet()
AsyncAtomicLong
asyncGet in interface AsyncAtomicLongpublic long incrementAndGet()
IAtomicLong
incrementAndGet in interface IAtomicLongpublic InternalCompletableFuture<Long> asyncIncrementAndGet()
AsyncAtomicLong
asyncIncrementAndGet in interface AsyncAtomicLongpublic long getAndIncrement()
IAtomicLong
getAndIncrement in interface IAtomicLongpublic InternalCompletableFuture<Long> asyncGetAndIncrement()
AsyncAtomicLong
asyncGetAndIncrement in interface AsyncAtomicLongpublic void alter(IFunction<Long,Long> function)
IAtomicLong
alter in interface IAtomicLongfunction - the function applied to the currently stored valuepublic InternalCompletableFuture<Void> asyncAlter(IFunction<Long,Long> function)
AsyncAtomicLong
asyncAlter in interface AsyncAtomicLongfunction - the functionpublic long alterAndGet(IFunction<Long,Long> function)
IAtomicLong
alterAndGet in interface IAtomicLongfunction - the function applied to the currently stored value
public InternalCompletableFuture<Long> asyncAlterAndGet(IFunction<Long,Long> function)
AsyncAtomicLong
asyncAlterAndGet in interface AsyncAtomicLongfunction - the function
public long getAndAlter(IFunction<Long,Long> function)
IAtomicLong
getAndAlter in interface IAtomicLongfunction - the function applied to the currently stored value
public InternalCompletableFuture<Long> asyncGetAndAlter(IFunction<Long,Long> function)
AsyncAtomicLong
asyncGetAndAlter in interface AsyncAtomicLongfunction - the function
public <R> R apply(IFunction<Long,R> function)
IAtomicLong
apply in interface IAtomicLongfunction - the function applied to the value, the value is not changed
public <R> InternalCompletableFuture<R> asyncApply(IFunction<Long,R> function)
AsyncAtomicLong
asyncApply in interface AsyncAtomicLongfunction - the function
public String toString()
toString in class AbstractDistributedObject<AtomicLongService>| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||