Example usage for Java com.mongodb MongoClientOptions fields, constructors, methods, implement or subclass
The text is from its open source code.
Builder | builder() Creates a builder instance. |
Builder | builder(final MongoClientOptions options) Creates a builder instance. |
int | getConnectionsPerHost() The maximum number of connections allowed per host for this MongoClient instance. |
int | getConnectTimeout() The connection timeout in milliseconds. |
DBDecoderFactory | getDbDecoderFactory() Override the decoder factory. |
DBEncoderFactory | getDbEncoderFactory() Override the encoder factory. |
String | getDescription() Gets the description for this MongoClient, which is used in various places like logging and JMX. Default is null. |
int | getHeartbeatConnectTimeout() Gets the connect timeout for connections used for the cluster heartbeat. Default is 20,000 milliseconds. |
int | getHeartbeatFrequency() Gets the heartbeat frequency. |
int | getHeartbeatSocketTimeout() Gets the socket timeout for connections used for the cluster heartbeat. |
int | getLocalThreshold() Gets the local threshold. |
int | getMaxConnectionIdleTime() The maximum idle time of a pooled connection. |
int | getMaxConnectionLifeTime() The maximum life time of a pooled connection. |
int | getMaxWaitTime() The maximum wait time in milliseconds that a thread may wait for a connection to become available. Default is 120,000 milliseconds. |
int | getMinConnectionsPerHost() The minimum number of connections per host for this MongoClient instance. |
int | getMinHeartbeatFrequency() Gets the minimum heartbeat frequency. |
ReadPreference | getReadPreference() The read preference to use for queries, map-reduce, aggregation, and count. Default is ReadPreference.primary() . |
String | getRequiredReplicaSetName() Gets the required replica set name. |
int | getServerSelectionTimeout() Gets the server selection timeout in milliseconds, which defines how long the driver will wait for server selection to succeed before throwing an exception. Default is 30,000 milliseconds. |
SocketFactory | getSocketFactory() The socket factory for creating sockets to the mongo server. Default is SocketFactory.getDefault() |
int | getSocketTimeout() The socket timeout in milliseconds. |
int | getThreadsAllowedToBlockForConnectionMultiplier() This multiplier, multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool. |
WriteConcern | getWriteConcern() The write concern to use. Default is WriteConcern.ACKNOWLEDGED . |
boolean | isAlwaysUseMBeans() Gets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater. |
boolean | isCursorFinalizerEnabled() Gets whether there is a a finalize method created that cleans up instances of DBCursor that the client does not close. |
boolean | isSocketKeepAlive() This flag controls the socket keep-alive feature that keeps a connection alive through firewalls java.net.Socket#setKeepAlive(boolean) Default is true . |
String | toString() |