org.xmlBlaster.util.queue
Interface I_QueueSizeListener
- All Known Implementing Classes:
- BlockingQueueWrapper, QueuePluginManager
- public interface I_QueueSizeListener
I_QueueSizeListener listens on number of containing entry changes in the queue.
- Author:
- Marcel Ruff, Michele Laghi
Method Summary |
void |
changed(I_Queue queue,
long numEntries,
long numBytes,
boolean isShutdown)
This event is sent every time a change in entries has occurred in the
queue. |
changed
public void changed(I_Queue queue,
long numEntries,
long numBytes,
boolean isShutdown)
- This event is sent every time a change in entries has occurred in the
queue.
It is invoked after the change has taken place.
It allows for example to generate threshold alarms.
changed() is additionally called if the queue is shutdown (you can't operate on the queue
anymore in this case).
The changed() invocation is guaranteed to NOT be in any Queue specific synchronize
- Parameters:
queue
- The queue which fires the change eventnumEntries
- the number of entries in the queue after the
change has taken placenumBytes
- number of bytes in the queue after the change
has taken change.isShutdown
- Is set to true if queue.shutdown() was executed
Copyright © 1999-2007 The xmlBlaster.org contributers.