public static final class LegacyScheduler.PeekableFifoQueue<T> extends FifoQueueImpl<T>
m_delegate| Constructor and Description |
|---|
PeekableFifoQueue() |
| Modifier and Type | Method and Description |
|---|---|
T |
peek()
This method allows the caller to peek at the next object that would
be returned on a
remove call. |
public T peek() throws InterruptedException
remove call. If the queue is
currently empty then the caller is blocked until an object is put
into the queue.remove.InterruptedException - Thrown if the thread is interrupted.FifoQueueException - Thrown if an error occurs removing an item from the
queue.Copyright © 2015. All rights reserved.