BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Public Attributes
BeeeOn::BackOff Class Referenceabstract

Back-off policy for retrying an operation. More...

#include <BackOff.h>

Inheritance diagram for BeeeOn::BackOff:
BeeeOn::ExponentialBackOff BeeeOn::RandomBackOff

Public Types

typedef Poco::SharedPtr< BackOffPtr
 

Public Member Functions

virtual Poco::Timespan next ()=0
 
virtual void reset ()=0
 

Static Public Attributes

static const Poco::Timespan STOP = -1
 

Detailed Description

Back-off policy for retrying an operation.

Member Function Documentation

virtual Poco::Timespan BeeeOn::BackOff::next ( )
pure virtual
Returns
next timeout generated by the back-off algorithm.

Implemented in BeeeOn::ExponentialBackOff, and BeeeOn::RandomBackOff.

virtual void BeeeOn::BackOff::reset ( )
pure virtual

Reset state of the back-off algorithm.

Implemented in BeeeOn::ExponentialBackOff, and BeeeOn::RandomBackOff.

Field Documentation

const Poco::Timespan BackOff::STOP = -1
static

Constant returned when there will be no more back-off generated in this back-off instance unless reset is called.


The documentation for this class was generated from the following files: