[
https://issues.apache.org/jira/browse/COLLECTIONS-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16974002#comment-16974002
]
Chen commented on COLLECTIONS-546:
----------------------------------
Hi, [~gsavinov]
PassiveExpiringMap can be used to implement caching, and most of the caching is
also based on map storage. Does PassiveExpiringQueue have a usage scenario?
In keeping with PassiveExpiringMap, the PassiveExpiringQueue should be
implemented as a class that decorates the queue, not a concrete queue class.
But this decorative queue is not only difficult to implement but also not very
useful.
There is a delayQueue which is a concrete queue in jdk that might suit you!
> Implement expiring queue like already exist PassiveExpiringMap
> --------------------------------------------------------------
>
> Key: COLLECTIONS-546
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-546
> Project: Commons Collections
> Issue Type: New Feature
> Components: Collection
> Affects Versions: 4.x
> Reporter: Guram Savinov
> Priority: Major
> Labels: collection, expiration, queue
>
> It's very useful collection wrapper for map with expiration -
> PassiveExpiringMap.
> Can you implement queue with expiration like already exist PassiveExpiringMap?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)