package java.util.concurrent; import java.util.Deque; public interface BlockingDeque extends Deque, BlockingQueue { public T takeFirst() throws InterruptedException; public T takeLast() throws InterruptedException; public T pollFirst(long timeout, TimeUnit unit) throws InterruptedException; public T pollLast(long timeout, TimeUnit unit) throws InterruptedException; }