E
- the type of object referred to by this reference@Deprecated 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.
Instead of this interface, use the equivalent async methods in the public
IAtomicReference
interface. This interface has been deprecated
and will be removed in a future version.
Modifier and Type | Method and Description |
---|---|
ICompletableFuture<Void> |
asyncAlter(IFunction<E,E> function)
Deprecated.
Alters the currently stored reference by applying a function on it.
|
ICompletableFuture<E> |
asyncAlterAndGet(IFunction<E,E> function)
Deprecated.
Alters the currently stored reference by applying a function on it and gets the result.
|
<R> ICompletableFuture<R> |
asyncApply(IFunction<E,R> function)
Deprecated.
Applies a function on the value, the actual stored value will not change.
|
ICompletableFuture<Void> |
asyncClear()
Deprecated.
Clears the current stored reference.
|
ICompletableFuture<Boolean> |
asyncCompareAndSet(E expect,
E update)
Deprecated.
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
ICompletableFuture<Boolean> |
asyncContains(E value)
Deprecated.
Checks if the reference contains the value.
|
ICompletableFuture<E> |
asyncGet()
Deprecated.
Gets the current value.
|
ICompletableFuture<E> |
asyncGetAndAlter(IFunction<E,E> function)
Deprecated.
Alters the currently stored reference by applying a function on it on and gets the old value.
|
ICompletableFuture<E> |
asyncGetAndSet(E newValue)
Deprecated.
Gets the value and sets the new value.
|
ICompletableFuture<Boolean> |
asyncIsNull()
Deprecated.
Checks if the stored reference is null.
|
ICompletableFuture<Void> |
asyncSet(E newValue)
Deprecated.
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, alterAndGetAsync, alterAsync, apply, applyAsync, clear, clearAsync, compareAndSet, compareAndSetAsync, contains, containsAsync, get, getAndAlter, getAndAlterAsync, getAndSet, getAndSetAsync, getAsync, isNull, isNullAsync, set, setAndGet, setAsync
destroy, getName, getPartitionKey, getServiceName
ICompletableFuture<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 © 2021 Hazelcast, Inc.. All Rights Reserved.