T - the type of the reference.public abstract class AtomicReferenceUpdater<T> extends Object implements Function<T,T>
Implements the logic for updating an
AtomicReference correctly, using the
current value, computing the update and then setting it if it hasn't changed
in the meantime.
| Constructor and Description |
|---|
AtomicReferenceUpdater(AtomicReference<T> reference)
Constructor for AtomicReferenceUpdater.
|
public AtomicReferenceUpdater(AtomicReference<T> reference)
Constructor for AtomicReferenceUpdater.
reference - a AtomicReference
object.public final T update()
Copyright © 2016 Atlassian. All rights reserved.