Retrieves and removes the first element of this deque, or returns null if this deque is empty. E pollFirst(long timeout, TimeUnit unit) Retrieves and removes the first element of this deque, waiting up to the
Retrieves and removes the first element of this deque, or returns null if this deque is empty. E pollFirst(long timeout, TimeUnit unit) Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. E poll...
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. PollLast() Retrieves and removes the last element of this deque, or returns null if this deque is empty. PollLast(Int64, TimeUnit) Retrieves an...
private void waitUntilEnd(Long expiry) throws TimeoutException { while (System.currentTimeMillis() < expiry) { try { OutputFrame frame = frames.pollLast(100, TimeUnit.MILLISECONDS); if (frame == OutputFrame.END) { return; } if (frames.isEmpty()) { // sleep for a moment to avoid ex...
the head of this deque, or null if this deque is empty public E pollFirst (long timeout, TimeUnit unit) Added in API level 9 Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. Parameters tim...
isEmpty()) { return null; } // If we've already starting sending the first packet, we better finish if (outgoingQueue.getFirst().bb != null || !tunneledAuthInProgres) { return outgoingQueue.getFirst(); } // Since client's authentication with server is in progress, // send only ...
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. PollLast() Retrieves and removes the last element of this deque, or returns null if this deque is empty. PollLast(Int64, TimeUnit) Retrieves an...
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. PollLast() Retrieves and removes the last element of this deque, or returns null if this deque is empty. PollLast(Int64, TimeUnit) Retrieves an...
EMPTY_BUFFER; } if (top == VOID) { open = false; return null; } int topRemaining = top.remaining(); ByteBuf buffer = allocator.buffer(topRemaining); buffer.setBytes(0, top); buffer.setIndex(0, topRemaining); if (top.remaining() > 0) { queue.addFirst(top); } offset += top...
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. PollLast() Retrieves and removes the last element of this deque, or returnsnullif this deque is empty. ...