/// <summary> /// The configured lower threshold for a client's queue has been reached. /// </summary> /// <param name="client">The client session identifier.</param> /// <param name="policy">The message queue policy.</param> public override void OnLowerThresholdCrossed(SessionId client, IMessageQueuePolicy policy) { // The SetThrottled method enables throttling and conflation. This method requires the client session // to have the MODIFY_SESSION topic permission. theClientControl.SetThrottled(client, ThrottlerType.MESSAGE_INTERVAL, 1000, theClientCallback); }
/// <summary> /// The configured upper queue threshold for a client's queue has been reached. /// </summary> /// <param name="client">The client session identifier.</param> /// <param name="policy">The message queue policy.</param> public override void OnUpperThresholdCrossed( SessionId client, IMessageQueuePolicy policy ) { // The SetThrottled method enables throttling and conflation. This method requires the client session // to have the MODIFY_SESSION topic permission. theClientControl.SetThrottled( client, ThrottlerType.MESSAGE_INTERVAL, 10, theClientCallback ); }