public interface IAtomicLong extends DistributedObject
java.util.concurrent.atomic.AtomicLong.IAtomicReference| 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. | 
| String | getName()Returns the name of this IAtomicLong instance. | 
| long | incrementAndGet()Atomically increments the current value by one. | 
| void | set(long newValue)Atomically sets the given value. | 
destroy, getPartitionKey, getServiceNameString getName()
getName in interface DistributedObjectlong addAndGet(long delta)
delta - the value to add to the current valueboolean compareAndSet(long expect,
                    long update)
== the expected value.expect - the expected valueupdate - the new valuelong decrementAndGet()
long get()
long getAndAdd(long delta)
delta - the value to add to the current valuelong getAndSet(long newValue)
newValue - the new valuelong incrementAndGet()
long getAndIncrement()
void set(long newValue)
newValue - the new valuevoid alter(IFunction<Long,Long> function)
function - the function applied to the currently stored valueIllegalArgumentException - if function is null.long alterAndGet(IFunction<Long,Long> function)
function - the function applied to the currently stored valueIllegalArgumentException - if function is null.long getAndAlter(IFunction<Long,Long> function)
function - the function applied to the currently stored valueIllegalArgumentException - if function is null.<R> R apply(IFunction<Long,R> function)
function - the function applied to the value, the value is not changedIllegalArgumentException - if function is null.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.