|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventstore.mongo.MongoOptionsFactory
public class MongoOptionsFactory
Factory class used to create a MongoOptions
instance. The instance makes use of the defaults as
provided by the MongoOptions class. The moment you set a valid value, that value is used to create the options
object.
Constructor Summary | |
---|---|
MongoOptionsFactory()
Default constructor for the factory that initializes the defaults. |
Method Summary | |
---|---|
com.mongodb.MongoOptions |
createMongoOptions()
Uses the configured parameters to create a MongoOptions instance. |
int |
getConnectionsPerHost()
Getter for connectionsPerHost. |
int |
getConnectionTimeout()
Connection time out in milli seconds for doing something in mongo. |
int |
getMaxWaitTime()
get the maximum time a blocked thread that waits for a connection should wait. |
int |
getSocketTimeOut()
Getter for the socket timeout. |
int |
getThreadsAllowedToBlockForConnectionMultiplier()
Getter for the amount of threads that block in relation to the amount of possible connections. |
boolean |
isAutoConnectRetry()
Getter for the AutoConnectRetry property. |
void |
setAutoConnectRetry(boolean autoConnectRetry)
Setter for AutoConnectRetry. |
void |
setConnectionsPerHost(int connectionsPerHost)
Setter for the connections per host that are allowed. |
void |
setConnectionTimeout(int connectionTimeout)
Setter for the connection time out. |
void |
setMaxWaitTime(int maxWaitTime)
Set the max wait time for a blocked thread in milli seconds. |
void |
setSocketTimeOut(int socketTimeOut)
Setter for the socket time out. |
void |
setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier)
Set the multiplier for the amount of threads to block in relation to the maximum amount of connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MongoOptionsFactory()
Method Detail |
---|
public com.mongodb.MongoOptions createMongoOptions()
public boolean isAutoConnectRetry()
public void setAutoConnectRetry(boolean autoConnectRetry)
autoConnectRetry
- true if must try to auto reconnectpublic int getConnectionsPerHost()
public void setConnectionsPerHost(int connectionsPerHost)
connectionsPerHost
- number representing the number of connections per hostpublic int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout
- number representing the connection timeout in millispublic int getMaxWaitTime()
public void setMaxWaitTime(int maxWaitTime)
maxWaitTime
- number representing the number of milli seconds to wait for a threadpublic int getSocketTimeOut()
public void setSocketTimeOut(int socketTimeOut)
socketTimeOut
- number representing the amount of milli seconds to wait for a socket connectionpublic int getThreadsAllowedToBlockForConnectionMultiplier()
public void setThreadsAllowedToBlockForConnectionMultiplier(int threadsAllowedToBlockForConnectionMultiplier)
threadsAllowedToBlockForConnectionMultiplier
- Number representing the multiplier of the amount of
threads to block in relation to the connections that are allowed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |