long&nbsp;timeout)
                     throws java.lang.InterruptedException</pre>
<div class="block">Retrieve an object from the head of the queue, blocking until one arrives
 or until timeout occurs.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>timeout</code> - Maximum time to block on queue, in ms. Use 0 to poll the
            queue.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The object at the head of the queue, or null if none arrived in
         time.</dd