BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Back-off policy for retrying an operation. More...
#include <BackOff.h>
Public Types | |
typedef Poco::SharedPtr< BackOff > | Ptr |
Public Member Functions | |
virtual Poco::Timespan | next ()=0 |
virtual void | reset ()=0 |
Static Public Attributes | |
static const Poco::Timespan | STOP = -1 |
Back-off policy for retrying an operation.
|
pure virtual |
Implemented in BeeeOn::ExponentialBackOff, and BeeeOn::RandomBackOff.
|
pure virtual |
Reset state of the back-off algorithm.
Implemented in BeeeOn::ExponentialBackOff, and BeeeOn::RandomBackOff.
|
static |
Constant returned when there will be no more back-off generated in this back-off instance unless reset is called.