com.aerospike.client.policy
Class ClientPolicy

java.lang.Object
  extended by com.aerospike.client.policy.ClientPolicy
Direct Known Subclasses:
AsyncClientPolicy

public class ClientPolicy
extends java.lang.Object

Container object for client policy Command.


Field Summary
 boolean failIfNotConnected
          Throw exception if host connection fails during addHost().
 int maxSocketIdle
          Maximum socket idle in seconds.
 int maxThreads
          Estimate of incoming threads concurrently using synchronous methods in the client instance.
 int timeout
          Initial host connection timeout in milliseconds.
 
Constructor Summary
ClientPolicy()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeout

public int timeout
Initial host connection timeout in milliseconds. The timeout when opening a connection to the server host for the first time.


maxThreads

public int maxThreads
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.


maxSocketIdle

public int maxSocketIdle
Maximum socket idle in seconds. Socket connection pools will discard sockets that have been idle longer than the maximum.


failIfNotConnected

public boolean failIfNotConnected
Throw exception if host connection fails during addHost().

Constructor Detail

ClientPolicy

public ClientPolicy()