Class QueueEventStreamDefault
- Assembly
- Diffusion.Client.dll
This provides a default implementation of IQueueEventStream.
public class QueueEventStreamDefault : IQueueEventStream, IStream, ICallback
- Inheritance
-
QueueEventStreamDefault
- Implements
- Inherited Members
Remarks
This simply logs events at debug level and should only be used for diagnostic purposes. This may be extended to implement the notifications you wish to act upon.
Methods
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()
OnError(ErrorReason)
Notification of a contextual error related to this handler. This is
analogous to an unchecked exception being raised. Situations in which
OnError is called include the session being closed before the
handler is registered, a communication timeout, or a problem with the
provided parameters. No further calls will be made to this handler.
public virtual void OnError(ErrorReason errorReason)
Parameters
errorReasonErrorReasonA value representing the error; this can be one of the constants defined in ErrorReason, or a feature-specific reason.
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.