ClientPolicy FieldsAerospike
The ClientPolicy type exposes the following members.
Fields

  NameDescription
Public fieldbatchPolicyDefault
Default batch policy that is used when batch command's policy is null.
Public fieldfailIfNotConnected
Throw exception if all seed connections fail on cluster instantiation. Default: true
Public fieldinfoPolicyDefault
Default info policy that is used when info command's policy is null.
Public fieldipMap
A IP translation table is used in cases where different clients use different server IP addresses. This may be necessary when using clients from both inside and outside a local area network. Default is no translation.

The key is the IP address returned from friend info requests to other servers. The value is the real IP address used to connect to the server.

Public fieldmaxSocketIdle
Maximum socket idle in seconds. Socket connection pools will discard sockets that have been idle longer than the maximum. The value is limited to 24 hours (86400). Default: 14 seconds
Public fieldmaxThreads
Estimate of incoming threads concurrently using synchronous methods in the client instance. This field is used to size the synchronous connection pool for each server node. Default: 300
Public fieldpassword
Password authentication to cluster. The password will be stored by the client and sent to server in hashed format. Leave null for clusters running without restricted access.
Public fieldqueryPolicyDefault
Default query policy that is used when query command's policy is null.
Public fieldreadPolicyDefault
Default read policy that is used when read command's policy is null.
Public fieldrequestProleReplicas
Should prole replicas be requested from each server node in the cluster tend thread. This option is required if there is a need to distribute reads across proles. ( == ).

If requestProleReplicas is enabled, all prole partition maps will be cached on the client which results in extra storage multiplied by the replication factor.

The default is false (only request master replicas and never prole replicas).

Public fieldscanPolicyDefault
Default scan policy that is used when scan command's policy is null.
Public fieldtendInterval
Interval in milliseconds between cluster tends by maintenance thread. Default: 1 second
Public fieldtimeout
Initial host connection timeout in milliseconds. The timeout when opening a connection to the server host for the first time. Default: 1000ms
Public fielduser
User authentication to cluster. Leave null for clusters running without restricted access.
Public fieldwritePolicyDefault
Default write policy that is used when write command's policy is null.
Back to Top
See Also