API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent. ConcurrentLinkedQueue View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Object
      AbstractCollection
          AbstractQueue
              ConcurrentLinkedQueue
Implements
 Queue
 Serializable
Subclasses
Description
public class ConcurrentLinkedQueue
  An unbounded thread-safe queue based on linked nodes.
See also:   
Constructors
public ConcurrentLinkedQueue ()
Creates a ConcurrentLinkedQueue that is initially empty.
public ConcurrentLinkedQueue (Collection<Object> c)
  Creates a ConcurrentLinkedQueue initially containing the elements of the given collection, added in traversal order of the collection's iterator.
Methods
Hide/Show inherited methods
public boolean add ( E e) [Overrides AbstractQueue] [Specified in Queue]
  Inserts the specified element at the tail of this queue.
public boolean addAll (Collection<Object> c) [Inherited From AbstractQueue]
  Adds all of the elements in the specified collection to this queue.
public void clear () [Inherited From AbstractQueue]
  Removes all of the elements from this queue.
public boolean contains (Object o) [Overrides AbstractCollection]
  Returns true if this queue contains the specified element.
public boolean containsAll (Collection<Object> c) [Inherited From AbstractCollection]
  Returns true if this collection contains all of the elements in the specified collection.
public E element () [Inherited From AbstractQueue]
  Retrieves, but does not remove, the head of this queue.
pack-private Node< E> first ()
  Returns the first actual (non-header) node on list.
public boolean isEmpty () [Overrides AbstractCollection]
  Returns true if this queue contains no elements.
public Iterator< E> iterator () [Specified in AbstractCollection]
  Returns an iterator over the elements in this queue in proper sequence.
public boolean offer ( E e) [Specified in Queue]
  Inserts the specified element at the tail of this queue.
public E peek () [Specified in Queue]
public E poll () [Specified in Queue]
public E remove () [Inherited From AbstractQueue]
  Retrieves and removes the head of this queue.
public boolean remove (Object o) [Overrides AbstractCollection]
  Removes a single instance of the specified element from this queue, if it is present.
public boolean removeAll (Collection<Object> c) [Inherited From AbstractCollection]
  Removes all of this collection's elements that are also contained in the specified collection (optional operation).
public boolean retainAll (Collection<Object> c) [Inherited From AbstractCollection]
  Retains only the elements in this collection that are contained in the specified collection (optional operation).
public int size () [Specified in AbstractCollection]
  Returns the number of elements in this queue.
public Object toArray () [Overrides AbstractCollection]
  Returns an array containing all of the elements in this queue, in proper sequence.
public T toArray ( T a) [Overrides AbstractCollection]
  Returns an array containing all of the elements in this queue, in proper sequence; the runtime type of the returned array is that of the specified array.
public String toString () [Inherited From AbstractCollection]
  Returns a string representation of this collection.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar