Package ch.qos.logback.core.net
Class QueueFactory
java.lang.Object
ch.qos.logback.core.net.QueueFactory
Factory for
Queue instances.- Author:
- Sebastian Gröbler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> LinkedBlockingDeque<E>newLinkedBlockingDeque(int capacity) Creates a newLinkedBlockingDequewith the givencapacity.
-
Constructor Details
-
QueueFactory
public QueueFactory()
-
-
Method Details
-
newLinkedBlockingDeque
Creates a newLinkedBlockingDequewith the givencapacity. In case the given capacity is smaller than one it will automatically be converted to one.- Type Parameters:
E- the type of elements held in the queue- Parameters:
capacity- the capacity to use for the queue- Returns:
- a new instance of
ArrayBlockingQueue
-