Table of Contents

Class QueueEventHandlerDefault

Namespace
PushTechnology.ClientInterface.Client.Features.Control.Clients
Assembly
Diffusion.Client.dll

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

public class QueueEventHandlerDefault : IQueueEventHandler, IServerHandler
Inheritance
QueueEventHandlerDefault
Implements
Inherited Members

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.

public virtual void OnActive(IRegisteredHandler registeredHandler)

Parameters

registeredHandler IRegisteredHandler

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.

public virtual void OnClose()

OnLowerThresholdCrossed(ISessionId, IMessageQueuePolicy)

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

public virtual void OnLowerThresholdCrossed(ISessionId client, IMessageQueuePolicy policy)

Parameters

client ISessionId

The client session identifier.

policy IMessageQueuePolicy

The message queue policy.

OnUpperThresholdCrossed(ISessionId, IMessageQueuePolicy)

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

public virtual void OnUpperThresholdCrossed(ISessionId client, IMessageQueuePolicy policy)

Parameters

client ISessionId

The client session identifier.

policy IMessageQueuePolicy

The message queue policy.