[
https://issues.apache.org/jira/browse/COLLECTIONS-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044455#comment-17044455
]
David Mollitor commented on COLLECTIONS-735:
--------------------------------------------
[~apriya] Take a look at the implementation I put together for Apache ZooKeeper:
https://github.com/apache/zookeeper/blob/b2db3918cb2b681e0446cfe3247730deacc0567b/zookeeper-server/src/main/java/org/apache/zookeeper/util/CircularBlockingQueue.java#L41
> Concurrent CircularFifoQueue
> ----------------------------
>
> Key: COLLECTIONS-735
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-735
> Project: Commons Collections
> Issue Type: Improvement
> Components: Collection
> Reporter: David Mollitor
> Priority: Major
>
> Create a {{CircularFifoQueue}} that is also a {{BlockingQueue}}.
> That is to say, if the queue is full, overwrite the oldest element. If the
> queue is empty, the reader blocks until a value becomes available.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)