#include <algorithm>
#include <chrono>
#include <cmath>
#include <functional>
#include <memory>
#include <mutex>
#include <random>
#include <thread>
#include "unilink/diagnostics/error_types.hpp"
Go to the source code of this file.
|
| using | unilink::ReconnectPolicy = std::function< ReconnectDecision(const diagnostics::ErrorInfo &, uint32_t)> |
| | Function type for determining reconnection policy. More...
|
| |
|
| ReconnectPolicy | unilink::FixedInterval (std::chrono::milliseconds delay) |
| | Creates a policy that retries with a fixed interval. More...
|
| |
| ReconnectPolicy | unilink::ExponentialBackoff (std::chrono::milliseconds min_delay, std::chrono::milliseconds max_delay, double factor=2.0, bool jitter=true) |
| | Creates a policy that retries with exponential backoff. More...
|
| |