Example usage for Java java.util.concurrent.atomic AtomicLongFieldUpdater fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | compareAndSet(T obj, long expect, long update) Atomically sets the field of the given object managed by this updater to the given updated value if the current value == the expected value. |
long | get(T obj) Returns the current value held in the field of the given object managed by this updater. |