API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.atomic. AtomicReferenceFieldUpdater View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Object
      AtomicReferenceFieldUpdater
Implements
Subclasses
Description
publicabstract abstract class AtomicReferenceFieldUpdater
  A reflection-based utility that enables atomic updates to designated volatile reference fields of designated classes.
See also:   
Constructors
protected AtomicReferenceFieldUpdater ()
Protected do-nothing constructor for use by subclasses.
Methods
Hide/Show inherited methods
publicabstract boolean compareAndSet ( T obj, V expect, V 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.
publicabstract V get ( T obj)
  Gets the current value held in the field of the given object managed by this updater.
public V getAndSet ( T obj, V newValue)
  Atomically sets the field of the given object managed by this updater to the given value and returns the old value.
publicabstract void lazySet ( T obj, V newValue)
  Eventually sets the field of the given object managed by this updater to the given updated value.
publicstatic AtomicReferenceFieldUpdater< U, W> newUpdater (Class< U> tclass, Class< W> vclass, String fieldName)
  Creates and returns an updater for objects with the given field.
publicabstract void set ( T obj, V newValue)
  Sets the field of the given object managed by this updater to the given updated value.
publicabstract boolean weakCompareAndSet ( T obj, V expect, V 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.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar