com.mongodb
Class MongoOptions

java.lang.Object
  extended by com.mongodb.MongoOptions

public class MongoOptions
extends java.lang.Object

Various settings for the driver


Field Summary
 boolean autoConnectRetry
          this controls whether or not on a connect, the system retries automatically.
 int connectionsPerHost
          number of connections allowed per host will block if run out
 int connectTimeout
          connect timeout in milliseconds.
 int maxWaitTime
          max wait time of a blocking thread for a connection
 int socketTimeout
          socket timeout.
 int threadsAllowedToBlockForConnectionMultiplier
          multiplier for connectionsPerHost for # of threads that can block if connectionsPerHost is 10, and threadsAllowedToBlockForConnectionMultiplier is 5, then 50 threads can block more than that and an exception will be throw
 
Constructor Summary
MongoOptions()
           
 
Method Summary
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectionsPerHost

public int connectionsPerHost
number of connections allowed per host will block if run out


threadsAllowedToBlockForConnectionMultiplier

public int threadsAllowedToBlockForConnectionMultiplier
multiplier for connectionsPerHost for # of threads that can block if connectionsPerHost is 10, and threadsAllowedToBlockForConnectionMultiplier is 5, then 50 threads can block more than that and an exception will be throw


maxWaitTime

public int maxWaitTime
max wait time of a blocking thread for a connection


connectTimeout

public int connectTimeout
connect timeout in milliseconds. 0 is default and infinite


socketTimeout

public int socketTimeout
socket timeout. 0 is default and infinite


autoConnectRetry

public boolean autoConnectRetry
this controls whether or not on a connect, the system retries automatically. defaults to false

Constructor Detail

MongoOptions

public MongoOptions()
Method Detail

reset

public void reset()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object