org.norther.tammi.acorn.util.concurrent
Class LinkedQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedBlockingQueue
org.norther.tammi.acorn.util.concurrent.LinkedQueue
- All Implemented Interfaces:
- Serializable, Iterable, Collection, BlockingQueue, Queue
public class LinkedQueue
- extends LinkedBlockingQueue
A link-based and optionally bounded blocking queue class.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
|
Constructor Summary |
LinkedQueue()
Constructs a new queue. |
LinkedQueue(Collection c)
Constructs a new queue with an initial collection. |
LinkedQueue(int capacity)
Constructs a new queue with the specified capacity. |
LinkedQueue(int capacity,
Collection 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 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 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.