org.norther.tammi.acorn.util.concurrent
Class LinkedQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedBlockingQueue<E>
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. |
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 |
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.