Product: OpenFusion Notification Service
Version: 2.1 and above
Description:
How to tell which types a proxy supplier is subscribed to?
Solution:
Normally, suppliers are informed about new subscriptions (and consumers informed about new offers) automatically. However, both can at any time actively request a complete list.
The supplier calls the proxy consumer's obtain_subscription_types() method, which returns a list of all event types that consumers have registered their interest in.
The consumer calls the proxy supplier's obtain_offered_types() method, which returns a list of all event types that suppliers have noted that they will provide.
The parameter to these methods is an ObtainInfoMode value, which determines if results are returned and if automatic updates are performed in future. To obtain the current set of types, the parameter would be either
ObtainInfoMode.ALL_NOW_UPDATES_OFF (which will disable automatic updates) or
ObtainInfoMode.ALL_NOW_UPDATES_ON (which will enable automatic updates).
Even when automatic updates are stopped, the consumer and supplier can still call these methods to get the full list at any time.
Note: The NotifyPublish and NotifySubscribe interfaces are not supported in v4.
#notificationservice
#OpenFusion
#KnowledgeDocs