21 #include <unordered_map>
23 #include "hazelcast/util/export.h"
24 #include "hazelcast/util/IOUtil.h"
26 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
28 #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;
53 const char *get_system_property()
const;
57 std::string default_value_;
68 client_properties(
const std::unordered_map<std::string, std::string> &properties);
109 static const std::string PROP_HEARTBEAT_TIMEOUT_DEFAULT;
118 static const std::string PROP_HEARTBEAT_INTERVAL_DEFAULT;
130 static const std::string PROP_REQUEST_RETRY_COUNT_DEFAULT;
142 static const std::string PROP_REQUEST_RETRY_WAIT_TIME_DEFAULT;
150 static const std::string PROP_AWS_MEMBER_PORT_DEFAULT;
156 static const std::string INVOCATION_RETRY_PAUSE_MILLIS_DEFAULT;
169 static const std::string INVOCATION_TIMEOUT_SECONDS_DEFAULT;
175 static const std::string EVENT_THREAD_COUNT_DEFAULT;
178 static const std::string INTERNAL_EXECUTOR_POOL_SIZE;
179 static const std::string INTERNAL_EXECUTOR_POOL_SIZE_DEFAULT;
187 static const std::string SHUFFLE_MEMBER_LIST_DEFAULT;
199 static const std::string MAX_CONCURRENT_INVOCATIONS_DEFAULT;
213 static const std::string BACKPRESSURE_BACKOFF_TIMEOUT_MILLIS_DEFAULT;
221 static const std::string STATISTICS_ENABLED_DEFAULT;
227 static const std::string STATISTICS_PERIOD_SECONDS_DEFAULT;
233 static constexpr
const char * OPERATION_BACKUP_TIMEOUT_MILLIS =
"hazelcast.client.operation.backup.timeout.millis";
234 static constexpr
const char * OPERATION_BACKUP_TIMEOUT_MILLIS_DEFAULT =
"5000";
242 static constexpr
const char * FAIL_ON_INDETERMINATE_OPERATION_STATE =
"hazelcast.client.operation.fail.on.indeterminate.state";
243 static constexpr
const char * FAIL_ON_INDETERMINATE_OPERATION_STATE_DEFAULT =
"false";
249 static constexpr
const char * CLOUD_URL_BASE =
"hazelcast.client.cloud.url";
250 static constexpr
const char * CLOUD_URL_BASE_DEFAULT =
"coordinator.hazelcast.cloud";
303 std::unordered_map<std::string, std::string> properties_map_;
309 #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.