A retry policy that employs exponential backoff.
More...
#include <RetryPolicy.hpp>
|
| ExponentialBackoffRetryPolicy (boost::asio::io_context &ioc) |
| Create a new retry policy instance with the io_context provided.
|
|
bool | shouldRetry (CassandraError err) |
| Computes next retry delay and returns true unconditionally.
|
|
template<typename Fn > |
void | retry (Fn &&fn) |
| Schedules next retry.
|
|
A retry policy that employs exponential backoff.
◆ retry()
template<typename Fn >
void data::cassandra::impl::ExponentialBackoffRetryPolicy::retry |
( |
Fn && | fn | ) |
|
|
inline |
Schedules next retry.
- Parameters
-
fn | The callable to execute |
◆ shouldRetry()
bool data::cassandra::impl::ExponentialBackoffRetryPolicy::shouldRetry |
( |
CassandraError | err | ) |
|
|
inlinenodiscard |
Computes next retry delay and returns true unconditionally.
- Parameters
-
err | The cassandra error that triggered the retry |
The documentation for this class was generated from the following file: