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