46 std::chrono::milliseconds max_backoff,
57 [[nodiscard]]
auto to_string() const -> std::
string override;
Definition best_effort_retry_strategy.hxx:50
auto to_string() const -> std::string override
best_effort_retry_strategy(backoff_calculator calculator)
auto retry_after(const retry_request &request, retry_reason reason) -> retry_action override
~best_effort_retry_strategy() override=default
Definition retry_action.hxx:25
Definition retry_request.hxx:28
Definition retry_strategy.hxx:29
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
auto make_best_effort_retry_strategy(backoff_calculator calculator=controlled_backoff) -> std::shared_ptr< best_effort_retry_strategy >
auto controlled_backoff(std::size_t retry_attempts) -> std::chrono::milliseconds
calculates a backoff time duration from the retry attempts on a given request.
auto exponential_backoff(std::chrono::milliseconds min_backoff, std::chrono::milliseconds max_backoff, double backoff_factor) -> backoff_calculator
calculates a backoff time duration from the retry attempts on a given request.
retry_reason
Enumeration of possible retry reasons for operations.
Definition retry_reason.hxx:28
std::function< std::chrono::milliseconds(std::size_t retry_attempts)> backoff_calculator
Definition best_effort_retry_strategy.hxx:28