Provides a subscriber of Notification Stream. More...
#include <ndn-cxx/util/notification-subscriber.hpp>
Inheritance diagram for ndn::util::NotificationSubscriber< Notification >:
Collaboration diagram for ndn::util::NotificationSubscriber< Notification >:Public Member Functions | |
| NotificationSubscriber (Face &face, const Name &prefix, time::milliseconds interestLifetime=1_min) | |
| Construct a NotificationSubscriber. More... | |
| time::milliseconds | getInterestLifetime () const |
| bool | isRunning () const |
| void | start () |
| Start or resume receiving notifications. More... | |
| void | stop () |
| Stop receiving notifications. More... | |
Public Attributes | |
| signal::Signal< NotificationSubscriberBase, Data > | onDecodeError |
| Fires when a Data packet in the Notification Stream cannot be decoded as Notification. More... | |
| signal::Signal< NotificationSubscriberBase, lp::Nack > | onNack |
| Fires when a Nack is received. More... | |
| signal::Signal< NotificationSubscriber, Notification > | onNotification |
| Fires when a Notification is received. More... | |
| signal::Signal< NotificationSubscriberBase > | onTimeout |
| Fires when no Notification is received within getInterestLifetime() period. More... | |
Provides a subscriber of Notification Stream.
| Notification | type of Notification item, appears in payload of Data packets |
Definition at line 151 of file notification-subscriber.hpp.
|
inline |
Construct a NotificationSubscriber.
Definition at line 161 of file notification-subscriber.hpp.
|
inlineinherited |
This must be greater than FreshnessPeriod of Notification Data packets, to ensure correct operation of this subscriber implementation.
Definition at line 52 of file notification-subscriber.hpp.
|
inlineinherited |
Definition at line 58 of file notification-subscriber.hpp.
|
inherited |
Start or resume receiving notifications.
Definition at line 52 of file notification-subscriber.cpp.
|
inherited |
Stop receiving notifications.
Definition at line 62 of file notification-subscriber.cpp.
|
inherited |
Fires when a Data packet in the Notification Stream cannot be decoded as Notification.
Definition at line 131 of file notification-subscriber.hpp.
|
inherited |
Fires when a Nack is received.
Definition at line 123 of file notification-subscriber.hpp.
| signal::Signal<NotificationSubscriber, Notification> ndn::util::NotificationSubscriber< Notification >::onNotification |
Fires when a Notification is received.
Definition at line 171 of file notification-subscriber.hpp.
|
inherited |
Fires when no Notification is received within getInterestLifetime() period.
Definition at line 127 of file notification-subscriber.hpp.