20 #include <unordered_map>
22 #include "hazelcast/util/export.h"
23 #include "hazelcast/util/IOUtil.h"
25 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
27 #pragma warning(disable : 4251)
42 client_property(
const std::string& name,
const std::string& default_value);
44 const std::string& get_name()
const;
46 const std::string& get_default_value()
const;
54 const char* get_system_property()
const;
58 std::string default_value_;
70 const std::unordered_map<std::string, std::string>& properties);
112 static const std::string PROP_HEARTBEAT_TIMEOUT_DEFAULT;
122 static const std::string PROP_HEARTBEAT_INTERVAL_DEFAULT;
134 static const std::string PROP_REQUEST_RETRY_COUNT_DEFAULT;
146 static const std::string PROP_REQUEST_RETRY_WAIT_TIME_DEFAULT;
156 static const std::string PROP_AWS_MEMBER_PORT_DEFAULT;
162 static const std::string INVOCATION_RETRY_PAUSE_MILLIS_DEFAULT;
176 static const std::string INVOCATION_TIMEOUT_SECONDS_DEFAULT;
182 static const std::string EVENT_THREAD_COUNT_DEFAULT;
184 static const std::string INTERNAL_EXECUTOR_POOL_SIZE;
185 static const std::string INTERNAL_EXECUTOR_POOL_SIZE_DEFAULT;
193 static const std::string SHUFFLE_MEMBER_LIST_DEFAULT;
205 static const std::string MAX_CONCURRENT_INVOCATIONS_DEFAULT;
219 static const std::string BACKPRESSURE_BACKOFF_TIMEOUT_MILLIS_DEFAULT;
227 static const std::string STATISTICS_ENABLED_DEFAULT;
233 static const std::string STATISTICS_PERIOD_SECONDS_DEFAULT;
241 static constexpr
const char* OPERATION_BACKUP_TIMEOUT_MILLIS =
242 "hazelcast.client.operation.backup.timeout.millis";
243 static constexpr
const char* OPERATION_BACKUP_TIMEOUT_MILLIS_DEFAULT =
254 static constexpr
const char* FAIL_ON_INDETERMINATE_OPERATION_STATE =
255 "hazelcast.client.operation.fail.on.indeterminate.state";
256 static constexpr
const char* FAIL_ON_INDETERMINATE_OPERATION_STATE_DEFAULT =
263 static constexpr
const char* CLOUD_URL_BASE =
"hazelcast.client.cloud.url";
264 static constexpr
const char* CLOUD_URL_BASE_DEFAULT =
265 "api.viridian.hazelcast.com";
318 std::unordered_map<std::string, std::string> properties_map_;
324 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Client Properties is an internal class.
static const std::string PROP_HEARTBEAT_INTERVAL
Time interval in milliseconds between the heartbeats sent by the client to the nodes.
static const std::string PROP_REQUEST_RETRY_COUNT
Client will retry requests which either inherently retryable(idempotent client) or client_network_con...
static const std::string PROP_REQUEST_RETRY_WAIT_TIME
Client will retry requests which either inherently retryable(idempotent client) or client_network_con...
static const std::string MAX_CONCURRENT_INVOCATIONS
The maximum number of concurrent invocations allowed.
static const std::string SHUFFLE_MEMBER_LIST
Client shuffles the given member list to prevent all clients to connect to the same node when this pr...
static const std::string STATISTICS_PERIOD_SECONDS
The period in seconds the statistics sent to the cluster.
static const std::string EVENT_THREAD_COUNT
Number of the threads to handle the incoming event packets.
static const std::string STATISTICS_ENABLED
Use to enable the client statistics collection.
static const std::string INVOCATION_RETRY_PAUSE_MILLIS
Pause time between each retry cycle of an invocation in milliseconds.
static const std::string PROP_AWS_MEMBER_PORT
The discovery mechanism will discover only IP addresses.
static const std::string PROP_HEARTBEAT_TIMEOUT
Client will be sending heartbeat messages to members and this is the timeout.
static const std::string INVOCATION_TIMEOUT_SECONDS
When an invocation gets an exception because :
static const std::string BACKPRESSURE_BACKOFF_TIMEOUT_MILLIS
Control the maximum timeout in millis to wait for an invocation space to be available.
A client property is a configuration for hazelcast client.