Code example for AtomicReference

Methods: compareAndSetgetAndSet