xmlBlaster 2.2.0 API

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.
 

Method Detail

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 event
numEntries - the number of entries in the queue after the change has taken place
numBytes - number of bytes in the queue after the change has taken change.
isShutdown - Is set to true if queue.shutdown() was executed

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.