public class QueueFactory
extends java.lang.Object
Queue
instances.Constructor and Description |
---|
QueueFactory() |
Modifier and Type | Method and Description |
---|---|
<E> java.util.concurrent.LinkedBlockingDeque<E> |
newLinkedBlockingDeque(int capacity)
Creates a new
LinkedBlockingDeque with the given capacity . |
public <E> java.util.concurrent.LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity)
LinkedBlockingDeque
with the given capacity
.
In case the given capacity is smaller than one it will automatically be
converted to one.E
- the type of elements held in the queuecapacity
- the capacity to use for the queueArrayBlockingQueue
Copyright © 2010 - 2020 Adobe. All Rights Reserved