Interface for retry strategies.
More...
#include <Retry.hpp>
|
| RetryStrategy (std::chrono::steady_clock::duration delay) |
| Construct a new Retry Strategy object.
|
|
std::chrono::steady_clock::duration | getDelay () const |
|
void | increaseDelay () |
| Increase the delay value.
|
|
void | reset () |
| Reset the delay value.
|
|
|
virtual std::chrono::steady_clock::duration | nextDelay () const =0 |
|
Interface for retry strategies.
◆ RetryStrategy()
util::RetryStrategy::RetryStrategy |
( |
std::chrono::steady_clock::duration | delay | ) |
|
Construct a new Retry Strategy object.
- Parameters
-
delay | The initial delay value |
◆ getDelay()
std::chrono::steady_clock::duration util::RetryStrategy::getDelay |
( |
| ) |
const |
- Returns
- The current delay value
◆ nextDelay()
virtual std::chrono::steady_clock::duration util::RetryStrategy::nextDelay |
( |
| ) |
const |
|
protectedpure virtual |
- Returns
- The next computed delay value
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/util/Retry.hpp
- /__w/clio/clio/src/util/Retry.cpp