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