client-cpp
0.10.0
|
The public interface to topic subscription and notification delivery subsystems. More...
#include <INotificationManager.hpp>
Public Member Functions | |
virtual void | addTopicListListener (INotificationTopicListListener &listener)=0 |
Adds the listener which receives updates on the list of available topics. More... | |
virtual void | removeTopicListListener (INotificationTopicListListener &listener)=0 |
Removes listener which receives updates on the list of available topics. More... | |
virtual Topics | getTopics ()=0 |
Retrieves the list of available topics. More... | |
virtual void | addNotificationListener (INotificationListener &listener)=0 |
Adds the listener which receives notifications on all available topics. More... | |
virtual void | addNotificationListener (std::int64_t topicId, INotificationListener &listener)=0 |
Adds the listener which receives notifications on the specified topic. More... | |
virtual void | removeNotificationListener (INotificationListener &listener)=0 |
Removes the listener which receives notifications on all available topics. More... | |
virtual void | removeNotificationListener (std::int64_t topicId, INotificationListener &listener)=0 |
Removes the listener which receives notifications on the specified topic. More... | |
virtual void | subscribeToTopic (std::int64_t id, bool forceSync=true)=0 |
Subscribes to the specified optional topic to receive notifications on that topic. More... | |
virtual void | subscribeToTopics (const std::list< std::int64_t > &idList, bool forceSync=true)=0 |
Subscribes to the specified list of optional topics to receive notifications on those topics. More... | |
virtual void | unsubscribeFromTopic (std::int64_t id, bool forceSync=true)=0 |
Unsubscribes from the specified optional topic to stop receiving notifications on that topic. More... | |
virtual void | unsubscribeFromTopics (const std::list< std::int64_t > &idList, bool forceSync=true)=0 |
Unsubscribes from the specified list of optional topics to stop receiving notifications on those topics. More... | |
virtual void | sync ()=0 |
Sends subscription request(s) to the Operations server. More... | |
virtual | ~INotificationManager () |
The public interface to topic subscription and notification delivery subsystems.
Definition at line 40 of file INotificationManager.hpp.
|
inlinevirtual |
Definition at line 201 of file INotificationManager.hpp.
|
pure virtual |
Adds the listener which receives notifications on all available topics.
[in] | listener | The listener which receives notifications. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Adds the listener which receives notifications on the specified topic.
Listener(s) for optional topics may be added/removed irrespective to whether subscription is already done or not.
[in] | topicId | The id of the topic (either mandatory or optional). |
[in] | listener | The listener which receives notifications. |
UnavailableTopicException | Throws if the unknown topic id is provided. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Adds the listener which receives updates on the list of available topics.
[in] | listener | The listener which receives updates. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Retrieves the list of available topics.
Implemented in kaa::NotificationManager.
|
pure virtual |
Removes the listener which receives notifications on all available topics.
[in] | listener | The listener which receives notifications. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Removes the listener which receives notifications on the specified topic.
Listener(s) for optional topics may be added/removed irrespective to whether subscription is already done or not.
[in] | topicId | The id of topic (either mandatory or optional). |
[in] | listener | The listener which receives notifications. |
UnavailableTopicException | Throws if the unknown topic id is provided. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Removes listener which receives updates on the list of available topics.
[in] | listener | The listener which receives updates. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Subscribes to the specified optional topic to receive notifications on that topic.
[in] | topicId | The id of the optional topic. |
[in] | forceSync | Indicates whether the subscription request should be sent immediately to the Operations server. If false , the request postpones to the explicit call of sync() or to the first call of subscribeToTopic(), subscribeToTopics(), unsubscribeFromTopic() or unsubscribeFromTopics() with the true value for the forceSync parameter. |
UnavailableTopicException | Throws if the unknown topic id is provided or the topic isn't optional. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Subscribes to the specified list of optional topics to receive notifications on those topics.
[in] | topicIds | The list of optional topic id-s. |
[in] | forceSync | Indicates whether the subscription request should be sent immediately to the Operations server. If false , the request postpones to the explicit call of sync() or to the first call of subscribeToTopic(), subscribeToTopics(), unsubscribeFromTopic() or unsubscribeFromTopics() with the true value for the forceSync parameter. |
UnavailableTopicException | Throws if the unknown topic id is provided or the topic isn't optional. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Sends subscription request(s) to the Operations server.
Use as a convenient way to send several subscription requests at once.
Implemented in kaa::NotificationManager.
|
pure virtual |
Unsubscribes from the specified optional topic to stop receiving notifications on that topic.
[in] | topicId | The id of the optional topic. |
[in] | forceSync | Indicates whether the subscription request should be sent immediately to the Operations server or postponed. If false , the request is postponed either to the explicit call of sync() or to the first call of one of the following functions with the forceSync parameter set to true : subscribeToTopic(), subscribeToTopics(), unsubscribeFromTopic() or unsubscribeFromTopics() . |
UnavailableTopicException | Throws if the unknown topic id is provided or the topic isn't optional. |
Implemented in kaa::NotificationManager.
|
pure virtual |
Unsubscribes from the specified list of optional topics to stop receiving notifications on those topics.
[in] | topicId | The list of optional topic id-s. |
[in] | forceSync | Indicates whether the subscription request should be sent immediately to the Operations server or postponed. If false , the request is postponed either to the explicit call of sync() or to the first call of one of the following functions with the forceSync parameter set to true : subscribeToTopic(), subscribeToTopics(), unsubscribeFromTopic() or unsubscribeFromTopics() . |
UnavailableTopicException | Throws if the unknown topic id is provided or the topic isn't optional. |
Implemented in kaa::NotificationManager.