|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.document.mongodb.MongoOptionsFactoryBean
public class MongoOptionsFactoryBean
A factory bean for consruction a MongoOptions instance
Field Summary | |
---|---|
private boolean |
autoConnectRetry
this controls whether or not on a connect, the system retries automatically |
private int |
connectionsPerHost
number of connections allowed per host will block if run out |
private int |
connectTimeout
connect timeout in milliseconds. |
private int |
maxWaitTime
max wait time of a blocking thread for a connection |
private static MongoOptions |
MONGO_OPTIONS
|
private int |
socketTimeout
socket timeout. |
private 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 | |
---|---|
MongoOptionsFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
MongoOptions |
getObject()
|
java.lang.Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAutoConnectRetry(boolean autoConnectRetry)
this controls whether or not on a connect, the system retries automatically |
void |
setConnectionsPerHost(int connectionsPerHost)
number of connections allowed per host will block if run out |
void |
setConnectTimeout(int connectTimeout)
connect timeout in milliseconds. |
void |
setMaxWaitTime(int maxWaitTime)
max wait time of a blocking thread for a connection |
void |
setSocketTimeout(int socketTimeout)
socket timeout. |
void |
setThreadsAllowedToBlockForConnectionMultiplier(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final MongoOptions MONGO_OPTIONS
private int connectionsPerHost
private int threadsAllowedToBlockForConnectionMultiplier
private int maxWaitTime
private int connectTimeout
private int socketTimeout
private boolean autoConnectRetry
Constructor Detail |
---|
public MongoOptionsFactoryBean()
Method Detail |
---|
public void setConnectionsPerHost(int connectionsPerHost)
public void setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier)
public void setMaxWaitTime(int maxWaitTime)
public void setConnectTimeout(int connectTimeout)
public void setSocketTimeout(int socketTimeout)
public void setAutoConnectRetry(boolean autoConnectRetry)
public void afterPropertiesSet()
public MongoOptions getObject()
public java.lang.Class<?> getObjectType()
public boolean isSingleton()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |