Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::ExponentialBackoffStrategy Class Reference

A retry strategy that retries while exponentially increasing the delay between attempts. More...

#include <Retry.hpp>

Inheritance diagram for util::ExponentialBackoffStrategy:
Collaboration diagram for util::ExponentialBackoffStrategy:

Public Member Functions

 ExponentialBackoffStrategy (std::chrono::steady_clock::duration delay, std::chrono::steady_clock::duration maxDelay)
 Construct a new Exponential Backoff Strategy object.
 
- Public Member Functions inherited from util::RetryStrategy
 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

- Protected Member Functions inherited from util::RetryStrategy

Detailed Description

A retry strategy that retries while exponentially increasing the delay between attempts.

Constructor & Destructor Documentation

◆ ExponentialBackoffStrategy()

util::ExponentialBackoffStrategy::ExponentialBackoffStrategy ( std::chrono::steady_clock::duration delay,
std::chrono::steady_clock::duration maxDelay )

Construct a new Exponential Backoff Strategy object.

Parameters
delayThe initial delay value
maxDelayThe maximum delay value

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