com.hazelcast.client.config
Class ClientProperties

java.lang.Object
  extended by com.hazelcast.client.config.ClientProperties

public class ClientProperties
extends Object

Client Properties


Nested Class Summary
static class ClientProperties.ClientProperty
          A single client property.
 
Field Summary
static String PROP_EVENT_QUEUE_CAPACITY
          Capacity of executor that will handle incoming event packets.
static String PROP_EVENT_QUEUE_CAPACITY_DEFAULT
          Default value of capacity of executor that will handle incoming event packets.
static String PROP_EVENT_THREAD_COUNT
          Number of threads to handle incoming event packets
static String PROP_EVENT_THREAD_COUNT_DEFAULT
          Default value of number of threads to handle incoming event packets
static String PROP_HEARTBEAT_INTERVAL
          Time interval between heartbeats to nodes from client
static String PROP_HEARTBEAT_INTERVAL_DEFAULT
          Default value of PROP_HEARTBEAT_INTERVAL when user not set it explicitly
static String PROP_HEARTBEAT_TIMEOUT
          Client will be sending heartbeat messages to members and this is the timeout.
static String PROP_HEARTBEAT_TIMEOUT_DEFAULT
          Default value of heartbeat timeout when user not set it explicitly
static String PROP_REQUEST_RETRY_COUNT
          Client will retry requests which either inherently retryable(idempotent client) or ClientNetworkConfig.redoOperation is set to true.
static String PROP_REQUEST_RETRY_COUNT_DEFAULT
          Default value of PROP_REQUEST_RETRY_COUNT when user not set it explicitly
static String PROP_REQUEST_RETRY_WAIT_TIME
          Client will retry requests which either inherently retryable(idempotent client) or ClientNetworkConfig.redoOperation is set to true.
static String PROP_REQUEST_RETRY_WAIT_TIME_DEFAULT
          Default value of PROP_REQUEST_RETRY_WAIT_TIME when user not set it explicitly
static String PROP_SHUFFLE_INITIAL_MEMBER_LIST_DEFAULT
          Default value of shuffle member list is true when user not set it explicitly
static String PROP_SHUFFLE_MEMBER_LIST
          Client shuffles the given member list to prevent all clients to connect to same node when this property is false.
 
Constructor Summary
ClientProperties(ClientConfig clientConfig)
           
 
Method Summary
 ClientProperties.ClientProperty getEventQueueCapacity()
           
 ClientProperties.ClientProperty getEventThreadCount()
           
 ClientProperties.ClientProperty getHeartbeatInterval()
           
 ClientProperties.ClientProperty getHeartbeatTimeout()
           
 ClientProperties.ClientProperty getRetryCount()
           
 ClientProperties.ClientProperty getRetryWaitTime()
           
 ClientProperties.ClientProperty getShuffleMemberList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SHUFFLE_MEMBER_LIST

public static final String PROP_SHUFFLE_MEMBER_LIST
Client shuffles the given member list to prevent all clients to connect to same node when this property is false. When set to true, client tries to connect to nodes in order as given.

See Also:
Constant Field Values

PROP_SHUFFLE_INITIAL_MEMBER_LIST_DEFAULT

public static final String PROP_SHUFFLE_INITIAL_MEMBER_LIST_DEFAULT
Default value of shuffle member list is true when user not set it explicitly

See Also:
Constant Field Values

PROP_HEARTBEAT_TIMEOUT

public static final String PROP_HEARTBEAT_TIMEOUT
Client will be sending heartbeat messages to members and this is the timeout. If there is not any message passing between client and member within the given time via this property in milliseconds the connection will be closed.

See Also:
Constant Field Values

PROP_HEARTBEAT_TIMEOUT_DEFAULT

public static final String PROP_HEARTBEAT_TIMEOUT_DEFAULT
Default value of heartbeat timeout when user not set it explicitly

See Also:
Constant Field Values

PROP_HEARTBEAT_INTERVAL

public static final String PROP_HEARTBEAT_INTERVAL
Time interval between heartbeats to nodes from client

See Also:
Constant Field Values

PROP_HEARTBEAT_INTERVAL_DEFAULT

public static final String PROP_HEARTBEAT_INTERVAL_DEFAULT
Default value of PROP_HEARTBEAT_INTERVAL when user not set it explicitly

See Also:
Constant Field Values

PROP_REQUEST_RETRY_COUNT

public static final String PROP_REQUEST_RETRY_COUNT
Client will retry requests which either inherently retryable(idempotent client) or ClientNetworkConfig.redoOperation is set to true.

This property is to configure retry count before client give up retrying.

See Also:
Constant Field Values

PROP_REQUEST_RETRY_COUNT_DEFAULT

public static final String PROP_REQUEST_RETRY_COUNT_DEFAULT
Default value of PROP_REQUEST_RETRY_COUNT when user not set it explicitly

See Also:
Constant Field Values

PROP_REQUEST_RETRY_WAIT_TIME

public static final String PROP_REQUEST_RETRY_WAIT_TIME
Client will retry requests which either inherently retryable(idempotent client) or ClientNetworkConfig.redoOperation is set to true.

Time delay in milisecond between retries.

See Also:
Constant Field Values

PROP_REQUEST_RETRY_WAIT_TIME_DEFAULT

public static final String PROP_REQUEST_RETRY_WAIT_TIME_DEFAULT
Default value of PROP_REQUEST_RETRY_WAIT_TIME when user not set it explicitly

See Also:
Constant Field Values

PROP_EVENT_THREAD_COUNT

public static final String PROP_EVENT_THREAD_COUNT
Number of threads to handle incoming event packets

See Also:
Constant Field Values

PROP_EVENT_THREAD_COUNT_DEFAULT

public static final String PROP_EVENT_THREAD_COUNT_DEFAULT
Default value of number of threads to handle incoming event packets

See Also:
Constant Field Values

PROP_EVENT_QUEUE_CAPACITY

public static final String PROP_EVENT_QUEUE_CAPACITY
Capacity of executor that will handle incoming event packets.

See Also:
Constant Field Values

PROP_EVENT_QUEUE_CAPACITY_DEFAULT

public static final String PROP_EVENT_QUEUE_CAPACITY_DEFAULT
Default value of capacity of executor that will handle incoming event packets.

See Also:
Constant Field Values
Constructor Detail

ClientProperties

public ClientProperties(ClientConfig clientConfig)
Method Detail

getHeartbeatTimeout

public ClientProperties.ClientProperty getHeartbeatTimeout()

getHeartbeatInterval

public ClientProperties.ClientProperty getHeartbeatInterval()

getRetryCount

public ClientProperties.ClientProperty getRetryCount()

getRetryWaitTime

public ClientProperties.ClientProperty getRetryWaitTime()

getEventQueueCapacity

public ClientProperties.ClientProperty getEventQueueCapacity()

getEventThreadCount

public ClientProperties.ClientProperty getEventThreadCount()

getShuffleMemberList

public ClientProperties.ClientProperty getShuffleMemberList()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.