@Beta public interface AsyncAtomicReference<E> extends IAtomicReference<E>
IAtomicReference that exposes its operations using a ICompletableFuture
 so it can be used in the reactive programming model approach.| Modifier and Type | Method and Description | 
|---|---|
| ICompletableFuture<Void> | asyncAlter(IFunction<E,E> function)Alters the currently stored reference by applying a function on it. | 
| ICompletableFuture<E> | asyncAlterAndGet(IFunction<E,E> function)Alters the currently stored reference by applying a function on it and gets the result. | 
| <R> ICompletableFuture<R> | asyncApply(IFunction<E,R> function)Applies a function on the value, the actual stored value will not change. | 
| ICompletableFuture<Void> | asyncClear()Clears the current stored reference. | 
| ICompletableFuture<Boolean> | asyncCompareAndSet(E expect,
                  E update)Atomically sets the value to the given updated value
 only if the current value  ==the expected value. | 
| ICompletableFuture<Boolean> | asyncContains(E value)Checks if the reference contains the value. | 
| ICompletableFuture<E> | asyncGet()Gets the current value. | 
| ICompletableFuture<E> | asyncGetAndAlter(IFunction<E,E> function)Alters the currently stored reference by applying a function on it on and gets the old value. | 
| ICompletableFuture<E> | asyncGetAndSet(E newValue)Gets the value and sets the new value. | 
| ICompletableFuture<Boolean> | asyncIsNull()Checks if the stored reference is null. | 
| ICompletableFuture<Void> | asyncSet(E newValue)Atomically sets the given value. | 
| ICompletableFuture<E> | asyncSetAndGet(E update)Deprecated. 
 will be removed from Hazelcast 3.4 since it doesn't really serve a purpose. | 
alter, alterAndGet, apply, clear, compareAndSet, contains, get, getAndAlter, getAndSet, isNull, set, setAndGetdestroy, getName, getPartitionKey, getServiceNameICompletableFuture<Boolean> asyncCompareAndSet(E expect, E update)
== the expected value.expect - the expected valueupdate - the new valueICompletableFuture<E> asyncGet()
ICompletableFuture<Void> asyncSet(E newValue)
newValue - the new valueICompletableFuture<E> asyncGetAndSet(E newValue)
newValue - the new value.ICompletableFuture<E> asyncSetAndGet(E update)
update - the new valueICompletableFuture<Boolean> asyncIsNull()
ICompletableFuture<Void> asyncClear()
ICompletableFuture<Boolean> asyncContains(E value)
value - the value to check (is allowed to be null).ICompletableFuture<Void> asyncAlter(IFunction<E,E> function)
function - the functionIllegalArgumentException - if function is null.ICompletableFuture<E> asyncAlterAndGet(IFunction<E,E> function)
function - the functionIllegalArgumentException - if function is null.ICompletableFuture<E> asyncGetAndAlter(IFunction<E,E> function)
function - the functionIllegalArgumentException - if function is null.<R> ICompletableFuture<R> asyncApply(IFunction<E,R> function)
function - the functionIllegalArgumentException - if function is null.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.