[concurrency-interest] Bulk put/take queue operations

Doug Lea dl at cs.oswego.edu
Tue Nov 29 20:09:44 EST 2005


Jean Morissette wrote:
> Hi,
>    Is there any plan to support bulk put/take queue operations?  


For bulk-removes, there's BlockingQueue,drainTo. For bulk-adds,
there's addAll, although this is useful only for unbounded queues.
(For bounded ones, it will throw an exception if some cannot be
added without blocking.) Do you have something further in mind?

-Doug




More information about the Concurrency-interest mailing list