![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
Connection Retry Config is controls the period among the retries and when should a client gave up retrying. More...
#include <connection_retry_config.h>
Public Member Functions | |
std::chrono::milliseconds | get_initial_backoff_duration () const |
how long to wait after the first failure before retrying More... | |
connection_retry_config & | set_initial_backoff_duration (std::chrono::milliseconds initial_backoff_duration) |
std::chrono::milliseconds | get_max_backoff_duration () const |
When backoff reaches this upper bound, it does not increase any more. More... | |
connection_retry_config & | set_max_backoff_duration (std::chrono::milliseconds max_backoff_duration) |
When backoff reaches this upper bound, it does not increase any more. More... | |
double | get_multiplier () const |
factor with which to multiply backoff time after a failed retry More... | |
connection_retry_config & | set_multiplier (double multiplier) |
std::chrono::milliseconds | get_cluster_connect_timeout () const |
Timeout value for the client to give up to connect to the current cluster Theclient can shutdown after reaching the timeout. More... | |
connection_retry_config & | set_cluster_connect_timeout (std::chrono::milliseconds cluster_connect_timeout) |
double | get_jitter () const |
by how much to randomize backoffs. More... | |
connection_retry_config & | set_jitter (double jitter) |
At each iteration calculated back-off is randomized via following method random(-jitter * current_backoff, jitter * current_backoff) More... | |
Connection Retry Config is controls the period among the retries and when should a client gave up retrying.
Exponential behaviour can be chosen or jitter can be added to wait periods.
Definition at line 34 of file connection_retry_config.h.
std::chrono::milliseconds hazelcast::client::config::connection_retry_config::get_cluster_connect_timeout | ( | ) | const |
Timeout value for the client to give up to connect to the current cluster Theclient can shutdown after reaching the timeout.
Definition at line 233 of file config.cpp.
std::chrono::milliseconds hazelcast::client::config::connection_retry_config::get_initial_backoff_duration | ( | ) | const |
how long to wait after the first failure before retrying
Definition at line 199 of file config.cpp.
double hazelcast::client::config::connection_retry_config::get_jitter | ( | ) | const |
by how much to randomize backoffs.
At each iteration calculated back-off is randomized via following method random(-jitter * current_backoff, jitter * current_backoff)
Definition at line 245 of file config.cpp.
std::chrono::milliseconds hazelcast::client::config::connection_retry_config::get_max_backoff_duration | ( | ) | const |
When backoff reaches this upper bound, it does not increase any more.
Definition at line 211 of file config.cpp.
double hazelcast::client::config::connection_retry_config::get_multiplier | ( | ) | const |
factor with which to multiply backoff time after a failed retry
Definition at line 223 of file config.cpp.
connection_retry_config & hazelcast::client::config::connection_retry_config::set_cluster_connect_timeout | ( | std::chrono::milliseconds | cluster_connect_timeout | ) |
cluster_connect_timeout | timeout for the client to give up to connect to the current cluster The client can shutdown after reaching the timeout. |
Definition at line 237 of file config.cpp.
connection_retry_config & hazelcast::client::config::connection_retry_config::set_initial_backoff_duration | ( | std::chrono::milliseconds | initial_backoff_duration | ) |
initial_backoff_duration | how long to wait after the first failure before retrying |
Definition at line 204 of file config.cpp.
connection_retry_config & hazelcast::client::config::connection_retry_config::set_jitter | ( | double | jitter | ) |
At each iteration calculated back-off is randomized via following method random(-jitter * current_backoff, jitter * current_backoff)
jitter | by how much to randomize backoffs |
Definition at line 249 of file config.cpp.
connection_retry_config & hazelcast::client::config::connection_retry_config::set_max_backoff_duration | ( | std::chrono::milliseconds | max_backoff_duration | ) |
When backoff reaches this upper bound, it does not increase any more.
max_backoff_duration | upper bound on backoff |
Definition at line 216 of file config.cpp.
connection_retry_config & hazelcast::client::config::connection_retry_config::set_multiplier | ( | double | multiplier | ) |
multiplier | factor with which to multiply backoff after a failed retry |
Definition at line 227 of file config.cpp.