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) //for dll export 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 CLEAN_RESOURCES_PERIOD_MILLIS_DEFAULT;
162 static const std::string INVOCATION_RETRY_PAUSE_MILLIS_DEFAULT;
175 static const std::string INVOCATION_TIMEOUT_SECONDS_DEFAULT;
181 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;
239 static constexpr
const char * OPERATION_BACKUP_TIMEOUT_MILLIS =
"hazelcast.client.operation.backup.timeout.millis";
240 static constexpr
const char * OPERATION_BACKUP_TIMEOUT_MILLIS_DEFAULT =
"5000";
248 static constexpr
const char * FAIL_ON_INDETERMINATE_OPERATION_STATE =
"hazelcast.client.operation.fail.on.indeterminate.state";
249 static constexpr
const char * FAIL_ON_INDETERMINATE_OPERATION_STATE_DEFAULT =
"false";
302 std::unordered_map<std::string, std::string> properties_map_;
308 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) static const std::string STATISTICS_ENABLED
Use to enable the client statistics collection.
Definition: client_properties.h:226
static const std::string MAX_CONCURRENT_INVOCATIONS
The maximum number of concurrent invocations allowed.
Definition: client_properties.h:204
static const std::string PROP_REQUEST_RETRY_WAIT_TIME
Client will retry requests which either inherently retryable(idempotent client) or client_network_con...
Definition: client_properties.h:141
static const std::string BACKPRESSURE_BACKOFF_TIMEOUT_MILLIS
Control the maximum timeout in millis to wait for an invocation space to be available.
Definition: client_properties.h:218
static const std::string INVOCATION_RETRY_PAUSE_MILLIS
Pause time between each retry cycle of an invocation in milliseconds.
Definition: client_properties.h:161
static const std::string PROP_HEARTBEAT_TIMEOUT
Client will be sending heartbeat messages to members and this is the timeout.
Definition: client_properties.h:108
static const std::string PROP_REQUEST_RETRY_COUNT
Client will retry requests which either inherently retryable(idempotent client) or client_network_con...
Definition: client_properties.h:129
static const std::string PROP_AWS_MEMBER_PORT
The discovery mechanism will discover only IP addresses.
Definition: client_properties.h:149
static const std::string EVENT_THREAD_COUNT
Number of the threads to handle the incoming event packets.
Definition: client_properties.h:180
static const std::string STATISTICS_PERIOD_SECONDS
The period in seconds the statistics sent to the cluster.
Definition: client_properties.h:232
static const std::string CLEAN_RESOURCES_PERIOD_MILLIS
The period in milliseconds at which the resource cleaning is run (e.g.
Definition: client_properties.h:155
A client property is a configuration for hazelcast client.
Definition: client_properties.h:40
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...
Definition: client_properties.h:192
static const std::string INVOCATION_TIMEOUT_SECONDS
When an invocation gets an exception because :
Definition: client_properties.h:174
Client Properties is an internal class.
Definition: client_properties.h:66
static const std::string PROP_HEARTBEAT_INTERVAL
Time interval in milliseconds between the heartbeats sent by the client to the nodes.
Definition: client_properties.h:117