39 |
|
*/ |
40 |
|
public class LinkedBlockingDeque<E> |
41 |
|
extends AbstractQueue<E> |
42 |
< |
implements BlockingDeque<E>, java.io.Serializable { |
42 |
> |
implements BlockingDeque<E>, java.io.Serializable { |
43 |
|
|
44 |
|
/* |
45 |
|
* Implemented as a simple doubly-linked list protected by a |
434 |
|
|
435 |
|
// BlockingQueue methods |
436 |
|
|
437 |
< |
public void put(E o) throws InterruptedException { putLast(o); } |
438 |
< |
public E take() throws InterruptedException { return takeFirst(); } |
437 |
> |
public void put(E o) throws InterruptedException { putLast(o); } |
438 |
> |
public E take() throws InterruptedException { return takeFirst(); } |
439 |
|
public boolean offer(E o, long timeout, TimeUnit unit) |
440 |
|
throws InterruptedException { return offerLast(o, timeout, unit); } |
441 |
|
public E poll(long timeout, TimeUnit unit) |