org.apache.commons.pipeline.util
Interface QueueFactory<T>

All Known Subinterfaces:
BlockingQueueFactory<T>
All Known Implementing Classes:
BlockingQueueFactory.ArrayBlockingQueueFactory, BlockingQueueFactory.DelayQueueFactoryL, BlockingQueueFactory.LinkedBlockingQueueFactory, BlockingQueueFactory.PriorityBlockingQueueFactory, BlockingQueueFactory.SynchronousQueueFactory, QueueFactory.ConcurrentLinkedQueueFactory, QueueFactory.LinkedListFactory, QueueFactory.PriorityQueueFactory

public interface QueueFactory<T>

Many StageDriver implementations require for one or more queues to be created. This interface provides a consistent API for factories used to create such queues and supplies a couple of default implementations.


Nested Class Summary
static class QueueFactory.AbstractQueueFactory<T>
           
static class QueueFactory.ConcurrentLinkedQueueFactory<T>
           
static class QueueFactory.LinkedListFactory<T>
           
static class QueueFactory.PriorityQueueFactory<T>
           
 
Method Summary
 Queue<T> createQueue()
          Create a new queue.
 

Method Detail

createQueue

Queue<T> createQueue()
Create a new queue.



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