Instantiate a new MongoClientOptions instance
Instantiate a new MongoClientOptions instance
# 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
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
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 maximum idle time, in milliseconds
the maximum life time, in milliseconds
maximum number of connections
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