| Modifier and Type | Method and Description |
|---|---|
| public default void | addAndGet(long
the value to add value, Handler<AsyncResult<Long>> handler which will be passed the value resultHandler)Add the value to the counter atomically and return the new count |
| public Future | addAndGet(long value)
Same as |
| public default void | compareAndSet(long
the expected value expected, long the new value value, Handler<AsyncResult<Boolean>> the handler will be passed true on success resultHandler)Set the counter to the specified value only if the current value is the expectec value. |
| public Future | compareAndSet(long expected, long value)
Same as |
| public default void | decrementAndGet(Handler<AsyncResult<Long>>
handler which will be passed the value resultHandler)Decrement the counter atomically and return the new count |
| public Future | |
| public default void | get(Handler<AsyncResult<Long>>
handler which will be passed the value resultHandler)Get the current value of the counter |
| public Future | |
| public default void | getAndAdd(long
the value to add value, Handler<AsyncResult<Long>> handler which will be passed the value resultHandler)Add the value to the counter atomically and return the value before the add |
| public Future | getAndAdd(long value)
Same as |
| public default void | getAndIncrement(Handler<AsyncResult<Long>>
handler which will be passed the value resultHandler)Increment the counter atomically and return the value before the increment. |
| public Future | |
| public default void | incrementAndGet(Handler<AsyncResult<Long>>
handler which will be passed the value resultHandler)Increment the counter atomically and return the new count |
| public Future |
| addAndGet | back to summary |
|---|---|
| public default void addAndGet(long value, Handler<AsyncResult<Long>> resultHandler) Add the value to the counter atomically and return the new count
| |
| addAndGet | back to summary |
|---|---|
| public Future Same as | |
| compareAndSet | back to summary |
|---|---|
| public default void compareAndSet(long expected, long value, Handler<AsyncResult<Boolean>> resultHandler) Set the counter to the specified value only if the current value is the expectec value. This happens atomically.
| |
| compareAndSet | back to summary |
|---|---|
| public Future Same as | |
| decrementAndGet | back to summary |
|---|---|
| public default void decrementAndGet(Handler<AsyncResult<Long>> resultHandler) Decrement the counter atomically and return the new count
| |
| decrementAndGet | back to summary |
|---|---|
| public Future Same as | |
| get | back to summary |
|---|---|
| public default void get(Handler<AsyncResult<Long>> resultHandler) Get the current value of the counter
| |
| get | back to summary |
|---|---|
| public Future Same as | |
| getAndAdd | back to summary |
|---|---|
| public default void getAndAdd(long value, Handler<AsyncResult<Long>> resultHandler) Add the value to the counter atomically and return the value before the add
| |
| getAndAdd | back to summary |
|---|---|
| public Future Same as | |
| getAndIncrement | back to summary |
|---|---|
| public default void getAndIncrement(Handler<AsyncResult<Long>> resultHandler) Increment the counter atomically and return the value before the increment.
| |
| getAndIncrement | back to summary |
|---|---|
| public Future Same as | |
| incrementAndGet | back to summary |
|---|---|
| public default void incrementAndGet(Handler<AsyncResult<Long>> resultHandler) Increment the counter atomically and return the new count
| |
| incrementAndGet | back to summary |
|---|---|
| public Future Same as | |