Is there any plan to support bulk put/take queue operations? This
would be usefull to improve performance by reducing lock overhead.
Also, this could add a kind of optimistic transactionnal semantic (if
the queue is bounded), which the current API doesn't support.
Jean Morissette wrote:
> 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?