|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mongodb.MongoOptions
public class MongoOptions
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int connectionsPerHost
public int threadsAllowedToBlockForConnectionMultiplier
public int maxWaitTime
public int connectTimeout
public int socketTimeout
public boolean autoConnectRetry
Constructor Detail |
---|
public MongoOptions()
Method Detail |
---|
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |