java.lang.Object
ch.qos.logback.core.net.QueueFactory
Factory for
Queue
instances.- Author:
- Sebastian Gröbler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E> LinkedBlockingDeque
<E> newLinkedBlockingDeque
(int capacity) Creates a newLinkedBlockingDeque
with the givencapacity
.
-
Constructor Details
-
QueueFactory
public QueueFactory()
-
-
Method Details
-
newLinkedBlockingDeque
Creates a newLinkedBlockingDeque
with 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
-