[concurrency-interest] Why no blocking peek call for j.u.c.BQ?

Peter Veentjer alarmnummer at gmail.com
Wed Jun 17 18:41:06 EDT 2009

To idea behind the peek is that it should not block unlike a take.

If you want a non blocking version, you can use the poll(long time,
TimeUnit unit) method. But it is strange that there is no (non
blocking) peek method. Perhaps that is the question you wanted to ask?

On Thu, Jun 18, 2009 at 12:27 AM, Taylor
Gautier<tgautier at terracottatech.com> wrote:
> Just wondering why there is no blocking peek call in the
> java.util.concurrent.BlockingQueue interface?
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest

More information about the Concurrency-interest mailing list