|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a FIFO queue that can be open and closed to control the addition of elements to the queue. When the queue is opened it is possible to add new elements to the queue. When the queue is closed, it is should not be possible to add elements to the queue. It should always be possible to read elements from the queue, so long as it is not empty.
Method Summary | |
void |
close()
Closes a currently open queue. |
boolean |
isClosed()
Returns true if the queue is currently closed. |
boolean |
isOpen()
Returns true if the queue is currently open. |
void |
open()
Ensures that the queue is open and new elements can be added to the queue. |
Methods inherited from interface org.opennms.core.queue.FifoQueue |
add, add, isEmpty, remove, remove, size |
Method Detail |
public boolean isOpen()
public boolean isClosed()
public void close() throws FifoQueueException
FifoQueueException
- Thrown if an error occurs closing the queue.public void open() throws FifoQueueException
FifoQueueException
- Thrown if an error occurs opening the queue.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |