org.apache.commons.pipeline.util
Class BlockingQueueFactory.LinkedBlockingQueueFactory<T>

java.lang.Object
  extended by org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory<T>
      extended by org.apache.commons.pipeline.util.BlockingQueueFactory.LinkedBlockingQueueFactory<T>
All Implemented Interfaces:
BlockingQueueFactory<T>, QueueFactory<T>
Enclosing interface:
BlockingQueueFactory<T>

public static class BlockingQueueFactory.LinkedBlockingQueueFactory<T>
extends QueueFactory.AbstractQueueFactory<T>
implements BlockingQueueFactory<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.commons.pipeline.util.BlockingQueueFactory
BlockingQueueFactory.ArrayBlockingQueueFactory<T>, BlockingQueueFactory.DelayQueueFactoryL<T extends Delayed>, BlockingQueueFactory.LinkedBlockingQueueFactory<T>, BlockingQueueFactory.PriorityBlockingQueueFactory<T>, BlockingQueueFactory.SynchronousQueueFactory<T>
 
Nested classes/interfaces inherited from interface org.apache.commons.pipeline.util.QueueFactory
QueueFactory.AbstractQueueFactory<T>, QueueFactory.ConcurrentLinkedQueueFactory<T>, QueueFactory.LinkedListFactory<T>, QueueFactory.PriorityQueueFactory<T>
 
Field Summary
 
Fields inherited from class org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory
initialContents
 
Constructor Summary
BlockingQueueFactory.LinkedBlockingQueueFactory()
           
 
Method Summary
 LinkedBlockingQueue<T> createQueue()
          Create a new queue.
 int getCapacity()
          Setter for property capacity.
 void setCapacity(int capacity)
          Getter for property capacity.
 
Methods inherited from class org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory
getInitialContents, setInitialContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockingQueueFactory.LinkedBlockingQueueFactory

public BlockingQueueFactory.LinkedBlockingQueueFactory()
Method Detail

createQueue

public LinkedBlockingQueue<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.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.