[
https://issues.apache.org/jira/browse/COLLECTIONS-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18010387#comment-18010387
]
Joerg Budischewski commented on COLLECTIONS-733:
------------------------------------------------
Would this all be worth the hassle in existence of
[LinkedBlockingDeque|https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/LinkedBlockingDeque.html]
? It does exactly what you desire, save that the underlying storage mechanism
is a linked queue instead of an resizable array. ...
> Thread-Safe Array Blocking Deque
> --------------------------------
>
> Key: COLLECTIONS-733
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-733
> Project: Commons Collections
> Issue Type: New Feature
> Reporter: David Mollitor
> Priority: Major
>
> The JDK offers an
> [ArrayDeque|https://docs.oracle.com/javase/8/docs/api/java/util/ArrayDeque.html]
> which is a resizable-array implementation of the
> [Deque|https://docs.oracle.com/javase/8/docs/api/java/util/Deque.html]
> interface.
> The JDK also offers an
> [ArrayBlockingQueue|https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ArrayBlockingQueue.html]
> which is a bounded blocking queue backed by an array.
> What I have had the need for several times now is a resizable-array
> implementation of a bounded blocking queue. It should implement all the same
> methods as the {{ArrayBlockingQueue}} but it can grow as needed, like an
> {{ArrayDeque}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)