|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.core.queue.FifoQueueImpl<T>
org.opennms.netmgt.scheduler.LegacyScheduler.PeekableFifoQueue<T>
public static final class LegacyScheduler.PeekableFifoQueue<T>
This queue extends the standard FIFO queue instance so that it is possible to peek at an instance without removing it from the queue.
| Method Summary | |
|---|---|
T |
peek()
This method allows the caller to peek at the next object that would be returned on a remove call. |
T |
remove()
Removes the next element from the queue and returns it to the caller. |
T |
remove(long timeout)
Removes the next element from the queue and returns it to the caller. |
| Methods inherited from class org.opennms.core.queue.FifoQueueImpl |
|---|
add, add, isEmpty, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public T peek()
throws InterruptedException,
FifoQueueException
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.
public T remove()
throws InterruptedException,
FifoQueueException
remove in interface FifoQueue<T>remove in class FifoQueueImpl<T>InterruptedException - Thrown if the thread is interrupted.
FifoQueueException - Thrown if an error occurs removing an item from the
queue.
public T remove(long timeout)
throws InterruptedException,
FifoQueueException
timeout.
remove in interface FifoQueue<T>remove in class FifoQueueImpl<T>timeout - The maximum time to wait.
InterruptedException - Thrown if the thread is interrupted.
FifoQueueException - Thrown if an error occurs removing an item from the
queue.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||