Example usage for Java com.mongodb MongoOptions fields, constructors, methods, implement or subclass
The text is from its open source code.
MongoOptions() Creates a new default MongoOptions . | |
MongoOptions(final MongoClientOptions options) Creates a new MongoOptions with the given options. |
int | getConnectionsPerHost() Gets the maximum number of connections allowed per host for this Mongo instance. |
void | setConnectionsPerHost(final int connections) Sets the maximum number of connections allowed per host for this Mongo instance. |
void | setConnectTimeout(final int timeoutMS) Sets the connection timeout in milliseconds. |
void | setFsync(final boolean sync) Sets the "fsync" value of the global WriteConcern. |
void | setMaxWaitTime(final int timeMS) Sets the maximum wait time in milliseconds that a thread may wait for a connection to become available. |
void | setSocketFactory(final SocketFactory factory) Sets the socket factory for creating sockets to mongod. |
void | setSocketKeepAlive(final boolean keepAlive) Sets the flag that controls the socket keep alive feature that keeps a connection alive through firewalls java.net.Socket#setKeepAlive(boolean) Default is false. |
void | setSocketTimeout(final int timeoutMS) Sets the socket timeout in milliseconds It is used for I/O socket read and write operations java.net.Socket#setSoTimeout(int) Default is 0 and means no timeout. |
void | setThreadsAllowedToBlockForConnectionMultiplier(final int threads) Sets the multiplier which, when multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool. |
void | setW(final int val) Sets the "w" value, (number of writes), of the global WriteConcern. |
void | setWriteConcern(final WriteConcern writeConcern) Sets the write concern. |
void | setWtimeout(final int timeoutMS) Sets the "wtimeout" value of the global WriteConcern. |