Interface BlockingQueueFactory<E>
- All Known Implementing Classes:
ArrayBlockingQueueFactory
,DisruptorBlockingQueueFactory
,JCToolsBlockingQueueFactory
,LinkedTransferQueueFactory
public interface BlockingQueueFactory<E>
Factory for creating instances of
BlockingQueue
.- Since:
- 2.7
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Theelement type
to use for plugins implementing this interface. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int capacity) Creates a new BlockingQueue with the specified maximum capacity.
-
Field Details
-
ELEMENT_TYPE
Theelement type
to use for plugins implementing this interface.- See Also:
-
-
Method Details
-
create
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
-