854 |
|
* up to the specified wait time for another thread to receive it. |
855 |
|
* |
856 |
|
* @return {@code true} if successful, or {@code false} if the |
857 |
< |
* specified waiting time elapses before a consumer appears. |
857 |
> |
* specified waiting time elapses before a consumer appears |
858 |
|
* @throws InterruptedException {@inheritDoc} |
859 |
|
* @throws NullPointerException {@inheritDoc} |
860 |
|
*/ |
903 |
|
* to insert it. |
904 |
|
* |
905 |
|
* @return the head of this queue, or {@code null} if the |
906 |
< |
* specified waiting time elapses before an element is present. |
906 |
> |
* specified waiting time elapses before an element is present |
907 |
|
* @throws InterruptedException {@inheritDoc} |
908 |
|
*/ |
909 |
|
public E poll(long timeout, TimeUnit unit) throws InterruptedException { |
918 |
|
* is currently making an element available. |
919 |
|
* |
920 |
|
* @return the head of this queue, or {@code null} if no |
921 |
< |
* element is available. |
921 |
> |
* element is available |
922 |
|
*/ |
923 |
|
public E poll() { |
924 |
|
return transferer.transfer(null, true, 0); |