Clio develop
The XRP Ledger API server.
|
A retry strategy that retries while exponentially increasing the delay between attempts. More...
#include <Retry.hpp>
Public Member Functions | |
ExponentialBackoffStrategy (std::chrono::steady_clock::duration delay, std::chrono::steady_clock::duration maxDelay) | |
Construct a new Exponential Backoff Strategy object. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() |
A retry strategy that retries while exponentially increasing the delay between attempts.
util::ExponentialBackoffStrategy::ExponentialBackoffStrategy | ( | std::chrono::steady_clock::duration | delay, |
std::chrono::steady_clock::duration | maxDelay ) |
Construct a new Exponential Backoff Strategy object.
delay | The initial delay value |
maxDelay | The maximum delay value |