public interface AsyncAtomicCounter
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
addAndGet(long delta)
Atomically adds the given value to the current value.
|
CompletableFuture<Long> |
get()
Returns the current value of the counter without modifying it.
|
CompletableFuture<Long> |
getAndAdd(long delta)
Atomically adds the given value to the current value.
|
CompletableFuture<Long> |
getAndIncrement()
Atomically increment by one the current value.
|
CompletableFuture<Long> |
incrementAndGet()
Atomically increment by one the current value.
|
CompletableFuture<Long> incrementAndGet()
CompletableFuture<Long> getAndIncrement()
CompletableFuture<Long> getAndAdd(long delta)
delta - the value to addCompletableFuture<Long> addAndGet(long delta)
delta - the value to addCompletableFuture<Long> get()
Copyright © 2015. All rights reserved.