public interface AsyncReferenceProxy<T>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
compareAndSet(T expect,
T update)
Sets the value if the current value == the expected value.
|
CompletableFuture<T> |
get()
Gets the value.
|
CompletableFuture<T> |
getAndSet(T value)
Sets and gets the value.
|
CompletableFuture<Void> |
set(T value)
Sets the value.
|
CompletableFuture<T> get()
CompletableFuture<Void> set(T value)
value - The value to set.CompletableFuture<T> getAndSet(T value)
value - The new value to set.CompletableFuture<Boolean> compareAndSet(T expect, T update)
expect - The expected value.update - The updated value.Copyright © 2013-2015. All Rights Reserved.