[concurrency-interest] BoundedPriorityBlockingQueue ?

Kasper Nielsen kav at it.edu
Tue Sep 12 12:24:14 EDT 2006

Hanson Char wrote:
> Say if you had such BoundedPriorityBlockingQueue, what would be the
> preferred behavior when the queue is full ?  Should the producer blocks in
> enqueueing, or return immediately with a false boolean value ?
> Hanson
It should obey the standard BlockingQueue contract.
offer, pool -> no blocking
offer(timeout), put, poll(timeout), take -> blocking

- Kasper

More information about the Concurrency-interest mailing list