provides a subscriber of Notification Stream
More...
#include <notification-subscriber.hpp>
template<typename Notification>
class ndn::util::NotificationSubscriber< Notification >
provides a subscriber of Notification Stream
- See also
- https://redmine.named-data.net/projects/nfd/wiki/Notification
- Template Parameters
-
Notification | type of Notification item, appears in payload of Data packets |
Definition at line 149 of file notification-subscriber.hpp.
template<typename Notification>
template<typename Notification>
template<typename Notification>
time::milliseconds ndn::util::NotificationSubscriberBase::getInterestLifetime |
( |
| ) |
const |
|
inlineinherited |
- Returns
- InterestLifetime of Interests to retrieve notifications
This must be greater than FreshnessPeriod of Notification Data packets, to ensure correct operation of this subscriber implementation.
Definition at line 53 of file notification-subscriber.hpp.
bool ndn::util::NotificationSubscriberBase::isRunning |
( |
| ) |
const |
|
inlineinherited |
void ndn::util::NotificationSubscriberBase::start |
( |
| ) |
|
|
inherited |
start or resume receiving notifications
- Note
- onNotification must have at least one listener, otherwise this operation has no effect.
Definition at line 51 of file notification-subscriber.cpp.
void ndn::util::NotificationSubscriberBase::stop |
( |
| ) |
|
|
inherited |
template<typename Notification>
fires when a Notification is received
- Note
- Removing all handlers will cause the subscriber to stop.
Definition at line 169 of file notification-subscriber.hpp.