@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) |
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) |
alter, alterAndGet, apply, clear, compareAndSet, contains, get, getAndAlter, getAndSet, isNull, set, setAndGet
destroy, getId, getName, getPartitionKey, getServiceName
ICompletableFuture<Boolean> asyncCompareAndSet(E expect, E update)
ICompletableFuture<E> asyncGet()
ICompletableFuture<Void> asyncSet(E newValue)
ICompletableFuture<E> asyncGetAndSet(E newValue)
ICompletableFuture<E> asyncSetAndGet(E update)
ICompletableFuture<Boolean> asyncIsNull()
ICompletableFuture<Void> asyncClear()
ICompletableFuture<Boolean> asyncContains(E value)
ICompletableFuture<Void> asyncAlter(IFunction<E,E> function)
ICompletableFuture<E> asyncAlterAndGet(IFunction<E,E> function)
ICompletableFuture<E> asyncGetAndAlter(IFunction<E,E> function)
<R> ICompletableFuture<R> asyncApply(IFunction<E,R> function)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.