BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
PollingKeeper takes care of devices that are being polled. It cancels all polled devices it manages upon request or destruction to avoid leaking unstopped polled devices. More...
#include <PollingKeeper.h>
Public Member Functions | |
~PollingKeeper () | |
Cancel all registered pollable devices. | |
void | setDevicePoller (DevicePoller::Ptr poller) |
Configure DevicePoller to use. | |
void | schedule (PollableDevice::Ptr device) |
Register the given device and schedule it into the underlying poller. | |
void | cancel (const DeviceID &id) |
Cancel polling of the device represented by the given ID and unregister it. | |
void | cancelAll () |
Cancel all registered pollable devices. | |
PollableDevice::Ptr | lookup (const DeviceID &id) const |
Lookup a device the PollingKeeper takes care of. | |
PollingKeeper takes care of devices that are being polled. It cancels all polled devices it manages upon request or destruction to avoid leaking unstopped polled devices.