Class QueueEventHandlerDefault
- 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
registeredHandlerIRegisteredHandlerThe 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
clientISessionIdThe client session identifier.
policyIMessageQueuePolicyThe 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
clientISessionIdThe client session identifier.
policyIMessageQueuePolicyThe message queue policy.