Instantiate a new MongoClientOptions instance
Instantiate a new MongoClientOptions instance
Whether system autoretries on connection errors, default false - deprecated There is no replacement for this method. Use the connectTimeout property to control connection timeout.
# of connections allowed per host (pool size, per host) default 100
Connection timeout in milliseconds default 10,000
Sets whether there is a finalize method created that cleans up instances of DBCursor default true
override the default decoder factory
override the default encoder factory
the description of the MongoClient
Sets the maximum auto connect retry time default 0 - deprecated There is no replacement for this method. Use the connectTimeout property to control connection timeout.
the maximum time that a thread will block waiting for a connection, default 1000 * 60 * 2
the read preference to use for queries, map-reduce, aggregation, and count
the socket factory for creating sockets to the mongo server
if socket keep alive is enabled, default false
socket timeout in milliseconds passed to Socket.setSoTimeout, default 0
the multiplier for number of threads allowed to block waiting for a connection, default 5
the write concern to use
the acceptable latency difference, in milliseconds
true if driver should always use MBeans, regardless of VM version
the heartbeat connect timeout, in milliseconds
the heartbeat frequency, in milliseconds
the heartbeat socket timeout, in milliseconds
the heartbeat thread count - deprecated will soon no longer be configurable
the maximum idle time, in milliseconds
the maximum life time, in milliseconds
maximum number of connections
the heartbeat connect retry frequency, in milliseconds - deprecated use minHeartbeatFrequency
the required replica set name for the replica set.
the minimum heartbeat frequency, in milliseconds, which must be > 0
MongoDBAddress
ServerAddress
Helper class for creating MongoClientOptions instances
2.5
com.mongodb.MongoClientOptions