Failover by simple retry operation.
Classes | |
struct | ozo::failover::retry_options |
Options for retry. More... | |
class | ozo::failover::basic_try< Options, Context > |
Operation try representation. More... | |
class | ozo::failover::retry_strategy< Options > |
Retry strategy. More... | |
Functions | |
template<typename ... ErrorConditions> | |
constexpr auto | ozo::failover::retry (ErrorConditions ...ec) |
|
constexpr |
Retry on specified error conditions.
ec | — variadic of error conditions to retry |
ozo::failover::retry_strategy
specialization.Retry on a network problem and operation timed-out no more than 3 tries. Each try has own time constraint calculated from total operation time constraint. See ozo::failover::retry_strategy::tries()
for time constraint details.
ozo::failover::retry_strategy
References ozo::failover::retry_options::conditions, and ozo::options_factory_base< RealType, Options >::set().