Top Description Constructors Methods
ch.qos.logback.core.net

public Class QueueFactory

extends Object
Class Inheritance
Imports
java.util.concurrent.ArrayBlockingQueue, .LinkedBlockingDeque

Factory for java.util.Queue instances.
Author
Sebastian Gröbler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <
the type of elements held in the queue
E
>
LinkedBlockingDeque<E>

Returns:

a new instance of ArrayBlockingQueue
newLinkedBlockingDeque
(int
the capacity to use for the queue
capacity
)

Creates a new LinkedBlockingDeque with the given capacity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

QueueFactoryback to summary
public QueueFactory()

Method Detail

newLinkedBlockingDequeback to summary
public <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity)

Creates a new LinkedBlockingDeque with the given capacity. In case the given capacity is smaller than one it will automatically be converted to one.

Parameters
<E>
the type of elements held in the queue
capacity:int

the capacity to use for the queue

Returns:LinkedBlockingDeque<E>

a new instance of ArrayBlockingQueue