20 #include "hazelcast/util/export.h"
22 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
24 #pragma warning(disable: 4251)
41 std::chrono::milliseconds get_initial_backoff_duration()
const;
48 set_initial_backoff_duration(std::chrono::milliseconds initial_backoff_duration);
55 std::chrono::milliseconds get_max_backoff_duration()
const;
70 double get_multiplier()
const;
84 std::chrono::milliseconds get_cluster_connect_timeout()
const;
92 set_cluster_connect_timeout(std::chrono::milliseconds cluster_connect_timeout);
101 double get_jitter()
const;
113 static constexpr std::chrono::milliseconds INITIAL_BACKOFF{1000};
114 static constexpr std::chrono::milliseconds MAX_BACKOFF{30000};
115 static constexpr std::chrono::milliseconds CLUSTER_CONNECT_TIMEOUT{(std::chrono::milliseconds::max)()};
116 static constexpr
double JITTER = 0;
117 std::chrono::milliseconds initial_backoff_duration_ = INITIAL_BACKOFF;
118 std::chrono::milliseconds max_backoff_duration_ = MAX_BACKOFF;
119 double multiplier_ = 1.05;
120 std::chrono::milliseconds cluster_connect_timeout_ = CLUSTER_CONNECT_TIMEOUT;
121 double jitter_ = JITTER;
128 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Connection Retry Config is controls the period among the retries and when should a client gave up ret...