org.norther.tammi.acorn.util.concurrent
Class BoundedQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.ArrayBlockingQueue
org.norther.tammi.acorn.util.concurrent.BoundedQueue
- All Implemented Interfaces:
- Serializable, Iterable, Collection, BlockingQueue, Queue
- Direct Known Subclasses:
- ThresholdQueue
public class BoundedQueue
- extends ArrayBlockingQueue
An array-based bounded blocking queue class.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
|
Constructor Summary |
BoundedQueue(int capacity)
Constructs a new queue with the specified capacity. |
BoundedQueue(int capacity,
boolean fair)
Creates a new queue with the specified capacity and access policy. |
BoundedQueue(int capacity,
boolean fair,
Collection c)
Creates a new queue with the specified capacity, access policy and an
initial collection. |
BoundedQueue(int capacity,
Collection c)
Creates a new queue with with the specified capacity and an initial
collection. |
| Methods inherited from class java.util.concurrent.ArrayBlockingQueue |
clear, contains, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, size, take, toArray, toArray, toString |
BoundedQueue
public BoundedQueue(int capacity)
- Constructs a new queue with the specified capacity.
- Parameters:
capacity - the capacity.
BoundedQueue
public BoundedQueue(int capacity,
Collection c)
- Creates a new queue with with the specified capacity and an initial
collection.
- Parameters:
capacity - the capacity.c - the initial collection of items.
BoundedQueue
public BoundedQueue(int capacity,
boolean fair)
- Creates a new queue with the specified capacity and access policy.
- Parameters:
capacity - the capacity.fair - true for FIFO, false for unspecified.
BoundedQueue
public BoundedQueue(int capacity,
boolean fair,
Collection c)
- Creates a new queue with the specified capacity, access policy and an
initial collection.
- Parameters:
capacity - the capacity.fair - true for FIFO, false for unspecified.c - the initial collection of items.
Copyright © 2004 The Norther Organization. All rights reserved.