159 |
|
* <tt>timeout</tt> parameter |
160 |
|
* @return the head of this queue, or <tt>null</tt> if the |
161 |
|
* specified waiting time elapses before an element with |
162 |
< |
* an unexpired dealy is present. |
162 |
> |
* an unexpired delay is present. |
163 |
|
* @throws InterruptedException if interrupted while waiting. |
164 |
|
*/ |
165 |
|
public E poll(long timeout, TimeUnit unit) throws InterruptedException { |
345 |
|
|
346 |
|
/** |
347 |
|
* Removes a single instance of the specified element from this |
348 |
< |
* collection, if it is present. |
348 |
> |
* queue, if it is present. |
349 |
|
*/ |
350 |
|
public boolean remove(Object o) { |
351 |
|
final ReentrantLock lock = this.lock; |