|
||||||||||
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 the system retries automatically on connection errors. |
int |
connectionsPerHost
The number of connections allowed per host (the pool size, per host) |
int |
connectTimeout
The connection timeout in milliseconds; this is for establishing the socket connections (open). |
int |
maxWaitTime
The max wait time for a blocking thread for a connection from the pool |
int |
socketTimeout
The socket timeout; this value is passed to Socket.setSoTimeout(int) . |
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()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int connectionsPerHost
The number of connections allowed per host (the pool size, per host)
Once the pool is exhausted, this will block. See threadsAllowedToBlockForConnectionMultiplier
public int threadsAllowedToBlockForConnectionMultiplier
public int maxWaitTime
public int connectTimeout
public int socketTimeout
Socket.setSoTimeout(int)
. 0 is default and infinite
public boolean autoConnectRetry
Constructor Detail |
---|
public MongoOptions()
Method Detail |
---|
public void reset()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |