provides a subscriber of Notification Stream More...
#include <notification-subscriber.hpp>
Public Member Functions | |
NotificationSubscriber (Face &face, const Name &prefix, const time::milliseconds &interestLifetime=time::milliseconds(60000)) | |
construct a NotificationSubscriber More... | |
virtual | ~NotificationSubscriber () |
time::milliseconds | getInterestLifetime () const |
bool | isRunning () const |
void | start () |
start or resume receiving notifications More... | |
void | stop () |
stop receiving notifications More... | |
Public Attributes | |
WireDecodable< Notification > | |
signal::Signal< NotificationSubscriber, Notification > | onNotification |
fires when a Notification is received More... | |
signal::Signal< NotificationSubscriber > | onTimeout |
fires when no Notification is received within .getInterestLifetime period More... | |
signal::Signal< NotificationSubscriber, Data > | onDecodeError |
fires when a Data packet in the Notification Stream cannot be decoded as Notification More... | |
provides a subscriber of Notification Stream
Notification | type of Notification item, appears in payload of Data packets |
Definition at line 64 of file notification-subscriber.hpp.
|
inline |
construct a NotificationSubscriber
Definition at line 74 of file notification-subscriber.hpp.
|
inlinevirtual |
Definition at line 86 of file notification-subscriber.hpp.
|
inline |
This must be greater than FreshnessPeriod of Notification Data packets, to ensure correct operation of this subscriber implementation.
Definition at line 95 of file notification-subscriber.hpp.
|
inline |
Definition at line 101 of file notification-subscriber.hpp.
|
inline |
start or resume receiving notifications
Definition at line 111 of file notification-subscriber.hpp.
Referenced by nfd::rib::RibManager::registerWithNfd().
|
inline |
stop receiving notifications
Definition at line 123 of file notification-subscriber.hpp.
ndn::util::NotificationSubscriber< Notification >::WireDecodable< Notification > |
Definition at line 68 of file notification-subscriber.hpp.
signal::Signal<NotificationSubscriber, Notification> ndn::util::NotificationSubscriber< Notification >::onNotification |
fires when a Notification is received
Definition at line 138 of file notification-subscriber.hpp.
Referenced by nfd::rib::RibManager::registerWithNfd().
signal::Signal<NotificationSubscriber> ndn::util::NotificationSubscriber< Notification >::onTimeout |
fires when no Notification is received within .getInterestLifetime period
Definition at line 142 of file notification-subscriber.hpp.
signal::Signal<NotificationSubscriber, Data> ndn::util::NotificationSubscriber< Notification >::onDecodeError |
fires when a Data packet in the Notification Stream cannot be decoded as Notification
Definition at line 146 of file notification-subscriber.hpp.