DEPRECATED: DiffusionTM JavaScript Classic API
5.9.4

Classes

Class TopicNotifyTopicHandler


The handler for topic notifications. A topic providing topic notifications is subscribed to as normal. The messages received can be parsed by this handler. To create the handler pass in the topic load message from the subscription to the topic. Also required is the client, a notification level and a listener object. The handler can then make selections of topics to listen for notifications to. When a notification is received it is passed to the listener object passed in.
Constructor for handler.


Constructor Summary

TopicNotifyTopicHandler TopicNotifyTopicHandler
Constructor for handler.

Method Summary

null select(mode, selection)
Updates the topic notifications that are listened for.
null setNotificationDetails(additions, removals, updates)
Sets the notification level.

Constructor Details

TopicNotifyTopicHandler

TopicNotifyTopicHandler TopicNotifyTopicHandler

Constructor for handler. Instances of this class should be created using the DiffusionClient object.

Parameters
message - ITL for notification topic
client - The DiffusionClient
listener - The listener object
Since:
4.6

Method Details

select

select(mode, selection)

Updates the topic notifications that are listened for. The selections can be added, removed or cleared.

Parameters
mode - The operation mode applied to the set of selections
selection - The set of selections to use in the modification
Since:
4.6

setNotificationDetails

setNotificationDetails(additions, removals, updates)

Sets the notification level. This sets the level for addition notifications only. Removed and updated notifications will be disabled.

Parameters
additions - The level of notifications for addition notifications
removals - The level of notifications for removal notifications
updates - The level of notifications for update notifications
Since:
4.6