Name | |
---|---|
void | onHighWatermarkExceeded(MamaQueue queue, long size) |
void | onLowWatermark(MamaQueue queue, long size) |
class com::wombat::mama::MamaQueueMonitorCallback;
Definition of the callback methods enabling event queue monitoring. Receiving callbacks when either the high watermark or the low watermark are exceeded. Not all middlewares will support the concept of both high and low watermarks. Concrete instances of this interface are registered with an event queue using the MamaQueue.setQueueMonitorCallback ()
.
void onHighWatermarkExceeded(
MamaQueue queue,
long size
)
Parameters:
Called when the specified high watermark threshold for the event queue has been exceeded.
void onLowWatermark(
MamaQueue queue,
long size
)
Parameters:
Called when the number of events on the event queue go below the specified low watermark. This is currently only supported for the WombatTCP middleware.
Updated on 2023-03-31 at 15:29:43 +0100