org.apache.commons.pipeline.util
Class BlockingQueueFactory.ArrayBlockingQueueFactory<T>
java.lang.Object
org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory<T>
org.apache.commons.pipeline.util.BlockingQueueFactory.ArrayBlockingQueueFactory<T>
- All Implemented Interfaces:
- BlockingQueueFactory<T>, QueueFactory<T>
- Enclosing interface:
- BlockingQueueFactory<T>
public static class BlockingQueueFactory.ArrayBlockingQueueFactory<T>
- extends QueueFactory.AbstractQueueFactory<T>
- implements BlockingQueueFactory<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockingQueueFactory.ArrayBlockingQueueFactory
public BlockingQueueFactory.ArrayBlockingQueueFactory()
createQueue
public ArrayBlockingQueue<T> createQueue()
- Description copied from interface:
QueueFactory
- Create a new queue.
- Specified by:
createQueue
in interface BlockingQueueFactory<T>
- Specified by:
createQueue
in interface QueueFactory<T>
setCapacity
public void setCapacity(int capacity)
- Getter for property capacity.
getCapacity
public int getCapacity()
- Setter for property capacity.
- Parameters:
capacity
- New value of property capacity.
isFair
public boolean isFair()
- Getter for property fair.
- Returns:
- Value of property fair.
setFair
public void setFair(boolean fair)
- Setter for property fair.
- Parameters:
fair
- New value of property fair.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.