AsyncClientPolicy FieldsAerospike
The AsyncClientPolicy type exposes the following members.
Fields

  NameDescription
Public fieldasyncMaxCommandAction
How to handle cases when the asynchronous maximum number of concurrent connections have been reached.
Public fieldasyncMaxCommands
Maximum number of concurrent asynchronous commands that are active at any point in time. Concurrent commands can be used to estimate concurrent connections. The number of concurrent open connections is limited by:

max open connections = asyncMaxCommands * <number of nodes in cluster>

The actual number of open connections consumed depends on how balanced the commands are between nodes and if asyncMaxConnAction is ACCEPT.

The maximum open connections should not exceed the total socket file descriptors available on the client machine. The socket file descriptors available can be determined by the following command:

ulimit -n

Public fieldfailIfNotConnected
Throw exception if host connection fails during addHost().
(Inherited from ClientPolicy.)
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.
(Inherited from ClientPolicy.)
Public fieldmaxSocketIdle
Maximum socket idle in seconds. Socket connection pools will discard sockets that have been idle longer than the maximum.
(Inherited from ClientPolicy.)
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.
(Inherited from ClientPolicy.)
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.
(Inherited from ClientPolicy.)
Public fieldqueryPolicyDefault
Default query policy that is used when query command's policy is null.
(Inherited from ClientPolicy.)
Public fieldreadPolicyDefault
Default read policy that is used when read command's policy is null.
(Inherited from ClientPolicy.)
Public fieldscanPolicyDefault
Default scan policy that is used when scan command's policy is null.
(Inherited from ClientPolicy.)
Public fieldtendInterval
Interval in milliseconds between cluster tends by maintenance thread. Default: 1 second
(Inherited from ClientPolicy.)
Public fieldtimeout
Initial host connection timeout in milliseconds. The timeout when opening a connection to the server host for the first time.
(Inherited from ClientPolicy.)
Public fielduser
User authentication to cluster. Leave null for clusters running without restricted access.
(Inherited from ClientPolicy.)
Public fieldwritePolicyDefault
Default write policy that is used when write command's policy is null.
(Inherited from ClientPolicy.)
Back to Top
See Also