| Removes the next reference object in this queue, blocking until either
one becomes available or the given timeout period expires.
This method does not offer real-time guarantees: It schedules the
timeout as if by invoking the
Object.wait(long) method.
Parameters: timeout - If positive, block for up timeout milliseconds while waiting for a reference to beadded to this queue. If zero, block indefinitely. A reference object, if one was available within the specifiedtimeout period, otherwise null throws: IllegalArgumentException - If the value of the timeout argument is negative throws: InterruptedException - If the timeout wait is interrupted |