com.hazelcast.core
Interface AsyncAtomicReference<E>

All Superinterfaces:
DistributedObject, IAtomicReference<E>

@Beta
public interface AsyncAtomicReference<E>
extends IAtomicReference<E>

A IAtomicReference that exposes its operations using a ICompletableFuture so it can be used in the reactive programming model approach.

Since:
3.2

Method Summary
 ICompletableFuture<Void> asyncAlter(IFunction<E,E> function)
           
 ICompletableFuture<E> asyncAlterAndGet(IFunction<E,E> function)
           
<R> ICompletableFuture<R>
asyncApply(IFunction<E,R> function)
           
 ICompletableFuture<Void> asyncClear()
           
 ICompletableFuture<Boolean> asyncCompareAndSet(E expect, E update)
           
 ICompletableFuture<Boolean> asyncContains(E value)
           
 ICompletableFuture<E> asyncGet()
           
 ICompletableFuture<E> asyncGetAndAlter(IFunction<E,E> function)
           
 ICompletableFuture<E> asyncGetAndSet(E newValue)
           
 ICompletableFuture<Boolean> asyncIsNull()
           
 ICompletableFuture<Void> asyncSet(E newValue)
           
 ICompletableFuture<E> asyncSetAndGet(E update)
           
 
Methods inherited from interface com.hazelcast.core.IAtomicReference
alter, alterAndGet, apply, clear, compareAndSet, contains, get, getAndAlter, getAndSet, isNull, set, setAndGet
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey, getServiceName
 

Method Detail

asyncCompareAndSet

ICompletableFuture<Boolean> asyncCompareAndSet(E expect,
                                               E update)

asyncGet

ICompletableFuture<E> asyncGet()

asyncSet

ICompletableFuture<Void> asyncSet(E newValue)

asyncGetAndSet

ICompletableFuture<E> asyncGetAndSet(E newValue)

asyncSetAndGet

ICompletableFuture<E> asyncSetAndGet(E update)

asyncIsNull

ICompletableFuture<Boolean> asyncIsNull()

asyncClear

ICompletableFuture<Void> asyncClear()

asyncContains

ICompletableFuture<Boolean> asyncContains(E value)

asyncAlter

ICompletableFuture<Void> asyncAlter(IFunction<E,E> function)

asyncAlterAndGet

ICompletableFuture<E> asyncAlterAndGet(IFunction<E,E> function)

asyncGetAndAlter

ICompletableFuture<E> asyncGetAndAlter(IFunction<E,E> function)

asyncApply

<R> ICompletableFuture<R> asyncApply(IFunction<E,R> function)


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.