|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.core.queue.FifoQueueImpl
org.opennms.netmgt.linkd.scheduler.Scheduler.PeekableFifoQueue
public static final class Scheduler.PeekableFifoQueue
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 | |
|---|---|
boolean |
isEmpty()
Used to test if the current queue has no stored elements. |
java.lang.Object |
peek()
This method allows the caller to peek at the next object that would be returned on a remove call. |
java.lang.Object |
remove()
Removes the next element from the queue and returns it to the caller. |
java.lang.Object |
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, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object peek()
throws java.lang.InterruptedException,
org.opennms.core.queue.FifoQueueException
remove call. If the queue is
currently empty then the caller is blocked until an object is put
into the queue.
remove.
java.lang.InterruptedException - Thrown if the thread is interrupted.
org.opennms.core.queue.FifoQueueException - Thrown if an error occurs removing an item from the
queue.
public java.lang.Object remove()
throws java.lang.InterruptedException,
org.opennms.core.queue.FifoQueueException
remove in interface org.opennms.core.queue.FifoQueueremove in class org.opennms.core.queue.FifoQueueImpljava.lang.InterruptedException - Thrown if the thread is interrupted.
org.opennms.core.queue.FifoQueueException - Thrown if an error occurs removing an item from the
queue.
public java.lang.Object remove(long timeout)
throws java.lang.InterruptedException,
org.opennms.core.queue.FifoQueueException
timeout.
remove in interface org.opennms.core.queue.FifoQueueremove in class org.opennms.core.queue.FifoQueueImpltimeout - The maximum time to wait.
java.lang.InterruptedException - Thrown if the thread is interrupted.
org.opennms.core.queue.FifoQueueException - Thrown if an error occurs removing an item from the
queue.public boolean isEmpty()
isEmpty in interface org.opennms.core.queue.FifoQueueisEmpty in class org.opennms.core.queue.FifoQueueImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||