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