BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <QueuingStrategy.h>
Public Types | |
typedef Poco::SharedPtr < QueuingStrategy > | Ptr |
Public Member Functions | |
virtual bool | empty ()=0 |
virtual void | push (const std::vector< SensorData > &data)=0 |
Serves to insert data into the strategy. More... | |
virtual size_t | peek (std::vector< SensorData > &data, size_t count)=0 |
Serves to access data held by the strategy. More... | |
virtual void | pop (size_t count)=0 |
Serves to release the data from the strategy. More... | |
A class that implements this interface should provide holding a backup of SensorData. The typical usage should be inserting, accessing and releasing the data.
|
pure virtual |
Implemented in BeeeOn::JournalQueuingStrategy, and BeeeOn::InMemoryQueuingStrategy.
|
pure virtual |
Serves to access data held by the strategy.
data | Vector to be filled with the data. |
count | Required data count. |
Implemented in BeeeOn::JournalQueuingStrategy, and BeeeOn::InMemoryQueuingStrategy.
|
pure virtual |
Serves to release the data from the strategy.
This method access the held data same way as the method peek(), so the same data that would be peeked by calling QueuingStrategy::peek(count) are released from the strategy by calling pop(count).
count | Count of data to be released. |
Implemented in BeeeOn::JournalQueuingStrategy, and BeeeOn::InMemoryQueuingStrategy.
|
pure virtual |
Serves to insert data into the strategy.
data | Data to be inserted. |
Implemented in BeeeOn::JournalQueuingStrategy, and BeeeOn::InMemoryQueuingStrategy.