![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
Implementation of ITopicNotifyTopicHandler. More...
Public Member Functions | |
TopicNotifyTopicHandlerImpl (IDiffusionClientConnector connection, ITopicMessage loadMessage, ITopicNotifyTopicListener listener) | |
Constructor. More... | |
void | SetNotificationLevel (NotificationLevel level) |
This can be used to change the notification level from that initially specified. More... | |
void | SetNotificationDetails (NotificationLevel addLevel, bool notifyRemoval, bool notifyUpdate) |
This can be used to set the notification details required. More... | |
void | Select (SelectionMode mode, TopicSet selections) |
Sends a request to the server to update the selection of topics that topic add notifications will be received for. As this is an asynchronous request to the server the update may not take effect immediately. Upon receiving the new selection set the server will check if there are any existing topics that match the selections (that did not match before) and send a separate add notification for each one. New topics that match the selections will be notified as and when they are added. More... | |
bool | HandleTopicMessage (IMessageSource source, ITopicMessage message) |
Handles a message received from an IMessageSource. More... | |
Properties | |
IDiffusionClientConnector | Connection [get, set] |
Returns the client connection. More... | |
NotificationLevel | NotificationLevel [get] |
Returns the current add notification level. More... | |
bool | IsNotifyingRemoval [get] |
Indicates whether notifying topic removals. More... | |
bool | IsNotifyingUpdate [get] |
Indicates whether notifying topic property updates. More... | |
![]() | |
IDiffusionClientConnector | Connection [get] |
Returns the client connection. More... | |
NotificationLevel | NotificationLevel [get] |
Returns the current add notification level. More... | |
bool | IsNotifyingRemoval [get] |
Indicates whether notifying topic removals. More... | |
bool | IsNotifyingUpdate [get] |
Indicates whether notifying topic property updates. More... | |
Implementation of ITopicNotifyTopicHandler.
PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.TopicNotifyTopicHandlerImpl.TopicNotifyTopicHandlerImpl | ( | IDiffusionClientConnector | connection, |
ITopicMessage | loadMessage, | ||
ITopicNotifyTopicListener | listener | ||
) |
Constructor.
connection | |
loadMessage | |
listener |
bool PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.TopicNotifyTopicHandlerImpl.HandleTopicMessage | ( | IMessageSource | source, |
ITopicMessage | message | ||
) |
Handles a message received from an IMessageSource.
This will handle an incoming message from a specified source.
source | The message source. |
message | The message. |
Implements PushTechnology.DiffusionCore.Messaging.Topic.ITopicListener.
void PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.TopicNotifyTopicHandlerImpl.Select | ( | SelectionMode | mode, |
TopicSet | selections | ||
) |
Sends a request to the server to update the selection of topics that topic add notifications will be received for. As this is an asynchronous request to the server the update may not take effect immediately. Upon receiving the new selection set the server will check if there are any existing topics that match the selections (that did not match before) and send a separate add notification for each one. New topics that match the selections will be notified as and when they are added.
mode | Indicates the mode of the requested update which can be to add to current selections, replace all current selections or to remove some or all current selections. |
selections | A set of topic selector patterns which specifies the topic selections to update. |
Implements PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.ITopicNotifyTopicHandler.
void PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.TopicNotifyTopicHandlerImpl.SetNotificationDetails | ( | NotificationLevel | addLevel, |
bool | notifyRemoval, | ||
bool | notifyUpdate | ||
) |
This can be used to set the notification details required.
If this is not called, then the default with be NotificationLevel.Minimum, with no deletions or updates notified.
This will send a message to the server requesting a change in the notification level and therefore should ideally be called before any call to Select( SelectionMode, TopicSet ) otherwise the effect will be delayed.
addLevel | The required notification level for add notifications. |
notifyRemoval | true to request notifications of topic removals. |
notifyUpdate | true to request notifications of updates to those topic properties that can be changed after the topic has been created. |
Implements PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.ITopicNotifyTopicHandler.
void PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.TopicNotifyTopicHandlerImpl.SetNotificationLevel | ( | NotificationLevel | level | ) |
This can be used to change the notification level from that initially specified.
This will send a message to the server requesting a change to the notification level and so may not take immediate effect.
level | The new notification level. |
Implements PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Notify.ITopicNotifyTopicHandler.
|
getset |
Returns the client connection.
|
get |
Indicates whether notifying topic removals.
|
get |
Indicates whether notifying topic property updates.
|
get |
Returns the current add notification level.