BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
DeviceCache manages pairing status devices which allows to choose different caching strategies like: in-memory cache, persistent cache, centralized cache, etc. More...
#include <DeviceCache.h>
Public Types | |
typedef Poco::SharedPtr < DeviceCache > | Ptr |
Public Member Functions | |
virtual void | markPaired (const DevicePrefix &prefix, const std::set< DeviceID > &devices)=0 |
virtual void | markPaired (const DeviceID &device)=0 |
virtual void | markUnpaired (const DeviceID &device)=0 |
virtual bool | paired (const DeviceID &id) const =0 |
virtual std::set< DeviceID > | paired (const DevicePrefix &prefix) const =0 |
DeviceCache manages pairing status devices which allows to choose different caching strategies like: in-memory cache, persistent cache, centralized cache, etc.
|
pure virtual |
Mark paired all the given devices with the prefix. Devices that are not included in the set are marked as unpaired. No other device of the prefix except those in the given set would be paired after this operation.
Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.
|
pure virtual |
Mark the device as paired.
Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.
|
pure virtual |
Mark the device as unpaired.
Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.
|
pure virtual |
Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.
|
pure virtual |
Provide set of all paired devices for the given prefix.
Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.