Interface ClientControl.QueueEventStream

All Superinterfaces:
Callback, Stream
All Known Implementing Classes:
ClientControl.QueueEventStream.Default
Enclosing interface:
ClientControl

public static interface ClientControl.QueueEventStream extends Stream
Handler for client queue events.

An implementation can be registered using ClientControl.setQueueEventHandler(QueueEventStream).

Since:
6.0
  • Method Details

    • onUpperThresholdCrossed

      void onUpperThresholdCrossed(SessionId sessionId, MessageQueuePolicy policy)
      The configured upper threshold for a client's queue has been reached.
      Parameters:
      sessionId - the client session identifier
      policy - the message queue policy
    • onLowerThresholdCrossed

      void onLowerThresholdCrossed(SessionId sessionId, MessageQueuePolicy policy)
      The configured lower threshold for a client's queue has been reached.
      Parameters:
      sessionId - the client session identifier
      policy - the message queue policy