BlockingQueueFactory<E>
@Plugin(name="ArrayBlockingQueue", category="Core", elementType="BlockingQueueFactory") public class ArrayBlockingQueueFactory<E> extends Object implements BlockingQueueFactory<E>
ArrayBlockingQueue
.ELEMENT_TYPE
Constructor | Description |
---|---|
ArrayBlockingQueueFactory() |
Modifier and Type | Method | Description |
---|---|---|
BlockingQueue<E> |
create(int capacity) |
Creates a new BlockingQueue with the specified maximum capacity.
|
static <E> ArrayBlockingQueueFactory<E> |
createFactory() |
public BlockingQueue<E> create(int capacity)
BlockingQueueFactory
create
in interface BlockingQueueFactory<E>
capacity
- maximum size of the queue if supported@PluginFactory public static <E> ArrayBlockingQueueFactory<E> createFactory()
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.