public static class ClientControl.QueueEventStream.Default extends Stream.Default implements ClientControl.QueueEventStream
ClientControl.QueueEventHandler
.
This simply logs events at debug level and should only be used for diagnostic purposes. This may be extended to implement the notifications you wish to act upon.
ClientControl.QueueEventStream.Default
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onLowerThresholdCrossed(SessionId sessionId,
MessageQueuePolicy policy)
The configured lower threshold for a client's queue has been reached.
|
void |
onUpperThresholdCrossed(SessionId sessionId,
MessageQueuePolicy policy)
The configured upper threshold for a client's queue has been reached.
|
onClose
onError
public void onUpperThresholdCrossed(SessionId sessionId, MessageQueuePolicy policy)
ClientControl.QueueEventStream
onUpperThresholdCrossed
in interface ClientControl.QueueEventStream
sessionId
- the client session identifierpolicy
- the message queue policypublic void onLowerThresholdCrossed(SessionId sessionId, MessageQueuePolicy policy)
ClientControl.QueueEventStream
onLowerThresholdCrossed
in interface ClientControl.QueueEventStream
sessionId
- the client session identifierpolicy
- the message queue policyCopyright © 2024 DiffusionData Ltd. All Rights Reserved.