public interface AsyncAtomicLongProxy
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
addAndGet(long value)
Adds to the current value and returns the updated value.
|
CompletableFuture<Boolean> |
compareAndSet(long expect,
long update)
Compares the current value and updates the value if expected value == actual value.
|
CompletableFuture<Long> |
decrementAndGet()
Decrements and returns the current value.
|
CompletableFuture<Long> |
get()
Gets the current value.
|
CompletableFuture<Long> |
getAndAdd(long value)
Gets the current value and then adds to it.
|
CompletableFuture<Long> |
getAndDecrement()
Gets the current value and decrements it.
|
CompletableFuture<Long> |
getAndIncrement()
Gets the current value and increments it.
|
CompletableFuture<Long> |
getAndSet(long value)
Gets the current value and then sets it.
|
CompletableFuture<Long> |
incrementAndGet()
Increments and returns the current value.
|
CompletableFuture<Void> |
set(long value)
Sets the current value.
|
CompletableFuture<Long> get()
CompletableFuture<Void> set(long value)
value - The current value.CompletableFuture<Long> addAndGet(long value)
value - The value to add.CompletableFuture<Long> getAndAdd(long value)
value - The value to add.CompletableFuture<Long> getAndSet(long value)
value - The value to set.CompletableFuture<Long> getAndIncrement()
CompletableFuture<Long> getAndDecrement()
CompletableFuture<Long> incrementAndGet()
CompletableFuture<Long> decrementAndGet()
CompletableFuture<Boolean> compareAndSet(long expect, long update)
expect - The expected value.update - The updated value.Copyright © 2013-2015. All Rights Reserved.