![]()  | 
  
    Hazelcast C++ Client
    
   Hazelcast C++ Client Library 
   | 
 
Client connection strategy configuration is used for setting custom strategies and configuring strategy parameters. More...
#include <client_connection_strategy_config.h>
Public Types | |
| enum | reconnect_mode { OFF , ON , ASYNC } | 
| Reconnect options.  More... | |
Public Member Functions | |
| bool | is_async_start () const | 
| Client instance creation won't block on hazelcast_client(ClientConfig &) if this value is true.  More... | |
| client_connection_strategy_config & | set_async_start (bool async_start) | 
| Set true for non blocking hazelcast_client(const client_config &).  More... | |
| reconnect_mode | get_reconnect_mode () const | 
| client_connection_strategy_config & | set_reconnect_mode (reconnect_mode reconnect_mode) | 
| How a client reconnect to cluster after a disconnect can be configured.  More... | |
| connection_retry_config & | get_retry_config () | 
| connection_retry_config controls the period among the retries and when a client should give up retrying.  More... | |
| client_connection_strategy_config & | set_retry_config (connection_retry_config retry_config) | 
| connection_retry_config controls the period among the retries and when a client should give up retrying.  More... | |
Client connection strategy configuration is used for setting custom strategies and configuring strategy parameters.
Definition at line 32 of file client_connection_strategy_config.h.
Reconnect options.
| Enumerator | |
|---|---|
| OFF | Prevent reconnect to cluster after a disconnect.  | 
| ON | Reconnect to cluster by blocking invocations.  | 
| ASYNC | Reconnect to cluster without blocking invocations. Invocations will receive hazelcast_client_offline  | 
Definition at line 39 of file client_connection_strategy_config.h.
| client_connection_strategy_config::reconnect_mode hazelcast::client::config::client_connection_strategy_config::get_reconnect_mode | ( | ) | const | 
Definition at line 324 of file config.cpp.
| connection_retry_config & hazelcast::client::config::client_connection_strategy_config::get_retry_config | ( | ) | 
connection_retry_config controls the period among the retries and when a client should give up retrying.
Exponential behaviour can be chosen or jitter can be added to wait periods.
Definition at line 343 of file config.cpp.
| bool hazelcast::client::config::client_connection_strategy_config::is_async_start | ( | ) | const | 
Client instance creation won't block on hazelcast_client(ClientConfig &) if this value is true.
Definition at line 328 of file config.cpp.
| client_connection_strategy_config & hazelcast::client::config::client_connection_strategy_config::set_async_start | ( | bool | async_start | ) | 
Set true for non blocking hazelcast_client(const client_config &).
The client creation won't wait to connect to cluster. The client instace will throw exception until it connects to cluster and become ready. If set to false, hazelcast_client(const client_config &) will block until a cluster connection established and it's ready to use client instance
default value is false
| asyncStart | true for async client creation | 
Definition at line 332 of file config.cpp.
| client_connection_strategy_config & hazelcast::client::config::client_connection_strategy_config::set_reconnect_mode | ( | reconnect_mode | reconnect_mode | ) | 
How a client reconnect to cluster after a disconnect can be configured.
This parameter is used by default strategy and custom implementations may ignore it if configured. default value is ReconnectMode#ON
| reconnectMode | 
Definition at line 338 of file config.cpp.
| client_connection_strategy_config & hazelcast::client::config::client_connection_strategy_config::set_retry_config | ( | connection_retry_config | retry_config | ) | 
connection_retry_config controls the period among the retries and when a client should give up retrying.
Exponential behaviour can be chosen or jitter can be added to wait periods.
| connection_retry_config | the connection retry config to read or modify. | 
Definition at line 348 of file config.cpp.