Return and remove the value at the head of the queue.
Return and remove the value at the head of the queue.
This method blocks if the queue is empty, until a value can be retrieved, or the given timeout expires.
Maximum wait time when the queue is empty.
java.util.concurrent.InterruptedException
if thread is interrupted
java.util.concurrent.TimeoutException
if timeout
expires
Append a value to the queue.
Append a value to the queue.
Value to be appended.
Interface for FIFO queues.