Instantiate a new MongoClientOptions instance
Instantiate a new MongoClientOptions instance
Whether system autoretries on connection errors, default false
# 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
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
MongoDBAddress
,ServerAddress
Helper class for creating MongoClientOptions instances
2.5
com.mongodb.MongoClientOptions