public interface CounterDelegate
| Modifier and Type | Method and Description |
|---|---|
long |
addAndGet(long delta)
Atomically adds the given value to the current value.
|
void |
close()
Closes the counter.
|
long |
decrementAndGet()
Atomically decrement by one and return the updated value.
|
long |
get()
Returns the counter value.
|
long |
getAndAdd(long delta)
Atomically adds the given value to the current value.
|
long |
getAndDecrement()
Atomically decrement by one and return the previous value.
|
long |
getAndIncrement()
Atomically increment by one and return the previous value.
|
long |
incrementAndGet()
Atomically increment by one and return the updated value.
|
long incrementAndGet()
long decrementAndGet()
long getAndIncrement()
long getAndDecrement()
long getAndAdd(long delta)
delta - the value to addlong addAndGet(long delta)
delta - the value to addlong get()
void close()
Copyright © 2013–2018. All rights reserved.