addAndGet | shared default void addAndGet(Integer value, Anything(Throwable|Integer) resultHandler)Add the value to the counter atomically and return the new count
Parameters: valueresultHandlerhandler which will be passed the value
|
compareAndSet | shared default void compareAndSet(Integer expected, Integer value, Anything(Throwable|Boolean) resultHandler)Set the counter to the specified value only if the current value is the expectec value. This happens
atomically.
Parameters: expectedvalueresultHandlerthe handler will be passed true on success
|
decrementAndGet | shared default void decrementAndGet(Anything(Throwable|Integer) resultHandler)Decrement the counter atomically and return the new count
Parameters: resultHandlerhandler which will be passed the value
|
get | shared default void get(Anything(Throwable|Integer) resultHandler)Get the current value of the counter
Parameters: resultHandlerhandler which will be passed the value
|
getAndAdd | shared default void getAndAdd(Integer value, Anything(Throwable|Integer) resultHandler)Add the value to the counter atomically and return the value before the add
Parameters: valueresultHandlerhandler which will be passed the value
|
getAndIncrement | shared default void getAndIncrement(Anything(Throwable|Integer) resultHandler)Increment the counter atomically and return the value before the increment.
Parameters: resultHandlerhandler which will be passed the value
|
incrementAndGet | shared default void incrementAndGet(Anything(Throwable|Integer) resultHandler)Increment the counter atomically and return the new count
Parameters: resultHandlerhandler which will be passed the value
|