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