API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.atomic. AtomicMarkableReference View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Object
      AtomicMarkableReference
Implements
Subclasses
Description
public class AtomicMarkableReference
  An AtomicMarkableReference maintains an object reference along with a mark bit, that can be updated atomically.
See also:   
Constructors
public AtomicMarkableReference ( V initialRef, boolean initialMark)
  Creates a new AtomicMarkableReference with the given initial values.
Methods
Hide/Show inherited methods
public boolean attemptMark ( V expectedReference, boolean newMark)
  Atomically sets the value of the mark to the given update value if the current reference is == to the expected reference.
public boolean compareAndSet ( V expectedReference, V newReference, boolean expectedMark, boolean newMark)
  Atomically sets the value of both the reference and mark to the given update values if the current reference is == to the expected reference and the current mark is equal to the expected mark.
public V get (boolean[] markHolder)
  Returns the current values of both the reference and the mark.
public V getReference ()
  Returns the current value of the reference.
public boolean isMarked ()
  Returns the current value of the mark.
public void set ( V newReference, boolean newMark)
  Unconditionally sets the value of both the reference and mark.
public boolean weakCompareAndSet ( V expectedReference, V newReference, boolean expectedMark, boolean newMark)
  Atomically sets the value of both the reference and mark to the given update values if the current reference is == to the expected reference and the current mark is equal to the expected mark.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar