Interface BlockingQueueFactory<E>
-
- All Known Implementing Classes:
ArrayBlockingQueueFactory,JCToolsBlockingQueueFactory,LinkedTransferQueueFactory
public interface BlockingQueueFactory<E>Factory for creating instances ofBlockingQueue.- Since:
- 2.7
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENT_TYPETheelement typeto use for plugins implementing this interface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.BlockingQueue<E>create(int capacity)Creates a new BlockingQueue with the specified maximum capacity.
-
-
-
Field Detail
-
ELEMENT_TYPE
static final java.lang.String ELEMENT_TYPE
Theelement typeto use for plugins implementing this interface.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
java.util.concurrent.BlockingQueue<E> create(int capacity)
Creates a new BlockingQueue with the specified maximum capacity. Note that not all implementations of BlockingQueue support a bounded capacity in which case the value is ignored.- Parameters:
capacity- maximum size of the queue if supported- Returns:
- a new BlockingQueue
-
-