20 #include "hazelcast/util/export.h"
22 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
24 #pragma warning(disable : 4251)
43 std::chrono::milliseconds get_initial_backoff_duration()
const;
51 std::chrono::milliseconds initial_backoff_duration);
58 std::chrono::milliseconds get_max_backoff_duration()
const;
67 std::chrono::milliseconds max_backoff_duration);
74 double get_multiplier()
const;
89 std::chrono::milliseconds get_cluster_connect_timeout()
const;
98 std::chrono::milliseconds cluster_connect_timeout);
107 double get_jitter()
const;
119 static constexpr std::chrono::milliseconds INITIAL_BACKOFF{ 1000 };
120 static constexpr std::chrono::milliseconds MAX_BACKOFF{ 30000 };
121 static constexpr std::chrono::milliseconds CLUSTER_CONNECT_TIMEOUT{ (
122 std::chrono::milliseconds::max)() };
123 static constexpr
double JITTER = 0;
124 std::chrono::milliseconds initial_backoff_duration_ = INITIAL_BACKOFF;
125 std::chrono::milliseconds max_backoff_duration_ = MAX_BACKOFF;
126 double multiplier_ = 1.05;
127 std::chrono::milliseconds cluster_connect_timeout_ =
128 CLUSTER_CONNECT_TIMEOUT;
129 double jitter_ = JITTER;
136 #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...