[concurrency-interest] Timed Peek for BlockingDeque

Jason Mehrens jason_mehrens at hotmail.com
Thu Sep 8 14:48:58 EDT 2005


Are timed peeks a worth while addition to the BlockingDeque?  There was a 
old RFE
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5099778 filed against the 
BlockingQueue about this issue. I would think it could be morphed into:

public E peekFirst (long timeout, TimeUnit unit) throws 
InterruptedException;
public E peekLast (long timeout, TimeUnit unit) throws InterruptedException;

I'm not sure if timed peeks pull their weight but, I figure it would be 
worth while to raise the issue.

Jason Mehrens




More information about the Concurrency-interest mailing list