org.xmlBlaster.util.queue
Interface I_StorageSizeListener
- All Known Implementing Classes:
- BlockingQueueWrapper, EventHelper, I_QueueTest.QueueSizeListener, QueueQueryPlugin, SessionInfo
public interface I_StorageSizeListener
I_StorageSizeListener listens on number of containing entry changes in the queue.
- Author:
- Marcel Ruff, Michele Laghi
Method Summary |
void |
changed(I_Storage queue,
long numEntries,
long numBytes,
boolean isShutdown)
This event is sent every time a change in entries has occurred in the
queue. |
changed
void changed(I_Storage 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-2014 The xmlBlaster.org contributers.