Class QueueEventHandlerDefault

Provides a default handler implementation which will simply log client state events.

Inheritance
System.Object
QueueEventHandlerDefault
Implements
IQueueEventHandler
IServerHandler
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Clients
Assembly: Diffusion.Client.dll
Syntax
public class QueueEventHandlerDefault : object, IQueueEventHandler, IServerHandler

Methods

OnActive(IRegisteredHandler)

Called when the handler has been registered at the server and is now active.

A session can register at most one handler of each type. If there is already a handler registered for the topic path the operation will fail, the registered handler will be closed, and the session error handler will be notified. To change the handler, first close the previous handler.

Declaration
public virtual void OnActive(IRegisteredHandler registeredHandler)
Parameters
Type Name Description
IRegisteredHandler registeredHandler

The registered handler.

OnClose()

Called if the handler is closed. This happens if the call to register the handler fails, or the handler is unregistered.

Declaration
public virtual void OnClose()

OnLowerThresholdCrossed(ISessionId, IMessageQueuePolicy)

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

Declaration
public virtual void OnLowerThresholdCrossed(ISessionId client, IMessageQueuePolicy policy)
Parameters
Type Name Description
ISessionId client

The client session identifier.

IMessageQueuePolicy policy

The message queue policy.

OnUpperThresholdCrossed(ISessionId, IMessageQueuePolicy)

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

Declaration
public virtual void OnUpperThresholdCrossed(ISessionId client, IMessageQueuePolicy policy)
Parameters
Type Name Description
ISessionId client

The client session identifier.

IMessageQueuePolicy policy

The message queue policy.

Implements

IQueueEventHandler
IServerHandler
Back to top