org.norther.tammi.acorn.util.concurrent
Class LinkedQueue<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.concurrent.LinkedBlockingQueue<E>
              extended by org.norther.tammi.acorn.util.concurrent.LinkedQueue<E>
Type Parameters:
E - the element type.
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>

public class LinkedQueue<E>
extends LinkedBlockingQueue<E>

A link-based and optionally bounded blocking queue class.

Version:
$Id: LinkedQueue.java,v 1.6 2009/09/28 15:08:49 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
LinkedQueue()
          Constructs a new queue.
LinkedQueue(Collection<? extends E> c)
          Constructs a new queue with an initial collection.
LinkedQueue(int capacity)
          Constructs a new queue with the specified capacity.
LinkedQueue(int capacity, Collection<? extends E> c)
          Constructs a new queue with the specified capacity and an initial collection.
 
Method Summary
 
Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, size, take, toArray, toArray, toString
 
Methods inherited from class java.util.AbstractQueue
add, addAll, element, remove
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains
 
Methods inherited from interface java.util.Queue
element, remove
 
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll
 

Constructor Detail

LinkedQueue

public LinkedQueue()
Constructs a new queue.


LinkedQueue

public LinkedQueue(Collection<? extends E> c)
Constructs a new queue with an initial collection.

Parameters:
c - the initial collection of items.

LinkedQueue

public LinkedQueue(int capacity)
Constructs a new queue with the specified capacity.

Parameters:
capacity - the capacity.

LinkedQueue

public LinkedQueue(int capacity,
                   Collection<? extends E> c)
Constructs a new queue with the specified capacity and an initial collection.

Parameters:
capacity - the capacity.
c - the initial collection of items.


Copyright © 2004 The Norther Organization. All rights reserved.