org.apache.camel.component.seda
Class PriorityBlockingQueueFactory<E>
java.lang.Object
org.apache.camel.component.seda.PriorityBlockingQueueFactory<E>
- All Implemented Interfaces:
- BlockingQueueFactory<E>
public class PriorityBlockingQueueFactory<E>
- extends Object
- implements BlockingQueueFactory<E>
Implementation of BlockingQueueFactory
producing PriorityBlockingQueue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriorityBlockingQueueFactory
public PriorityBlockingQueueFactory()
getComparator
public Comparator<E> getComparator()
setComparator
public void setComparator(Comparator<E> comparator)
create
public PriorityBlockingQueue<E> create()
- Description copied from interface:
BlockingQueueFactory
- Create a new
BlockingQueue
with default capacity
- Specified by:
create
in interface BlockingQueueFactory<E>
- Returns:
- New
BlockingQueue
create
public PriorityBlockingQueue<E> create(int capacity)
- Description copied from interface:
BlockingQueueFactory
- Create a new
BlockingQueue
with given capacity
- Specified by:
create
in interface BlockingQueueFactory<E>
- Returns:
- New
BlockingQueue
Apache Camel