|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NotifiableOutputFifoQueue<T>
This interface is implemented by FIFO queue implementations that can notify interested listener when elements are removed from the queue. This is useful for listeners that may block or preform other work while a queue is not empty, instead of using polling.
| Method Summary | |
|---|---|
void |
addOutputListener(OutputFifoQueueListener listener)
Adds a new listener to the notifiable queue. |
void |
removeOutputListener(OutputFifoQueueListener listener)
Removes an already registered listener. |
| Methods inherited from interface org.opennms.core.queue.FifoQueue |
|---|
add, add, isEmpty, remove, remove, size |
| Method Detail |
|---|
void addOutputListener(OutputFifoQueueListener listener)
callbackmethod invoked.
listener - The instance to be notified on queue removals.void removeOutputListener(OutputFifoQueueListener listener)
listener - The listener to remove from the queue.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||