C# Class Examples.ControlClientConflateAndThrottle.MyThresholdHandler

Inheritance: QueueEventHandlerDefault
显示文件 Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
MyThresholdHandler ( IClientControl clientControl, IClientCallback clientCallback ) : PushTechnology.ClientInterface.Client.Enums
OnLowerThresholdCrossed ( SessionId client, IMessageQueuePolicy policy ) : void

The configured lower threshold for a client's queue has been reached.

OnUpperThresholdCrossed ( SessionId client, IMessageQueuePolicy policy ) : void

The configured upper queue threshold for a client's queue has been reached.

Method Details

MyThresholdHandler() public method

public MyThresholdHandler ( IClientControl clientControl, IClientCallback clientCallback ) : PushTechnology.ClientInterface.Client.Enums
clientControl IClientControl
clientCallback IClientCallback
return PushTechnology.ClientInterface.Client.Enums

OnLowerThresholdCrossed() public method

The configured lower threshold for a client's queue has been reached.
public OnLowerThresholdCrossed ( SessionId client, IMessageQueuePolicy policy ) : void
client SessionId The client session identifier.
policy IMessageQueuePolicy The message queue policy.
return void

OnUpperThresholdCrossed() public method

The configured upper queue threshold for a client's queue has been reached.
public OnUpperThresholdCrossed ( SessionId client, IMessageQueuePolicy policy ) : void
client SessionId The client session identifier.
policy IMessageQueuePolicy The message queue policy.
return void