Skip to content

longkerdandy/mongo_multi_dc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

MongoDB Java Driver Configuration

serverSelectionTimeout

The server selection timeout in milliseconds, which defines how long the driver will wait for server selection to succeed before throwing an exception.

A value of 0 means that it will timeout immediately if no server is available. A negative value means to wait indefinitely.

connectTimeout

The connection timeout, in milliseconds, which must be greater than 0.

socketTimeout

The socket timeout, in milliseconds.

Suggested: same as connectTimeout

readPreference

The read preference. Read Preference at MongoDB Manual

Suggested: ReadPreference.nearest()

readConcern

The read preference. Read Concern at MongoDB Manual

writeConcern

The write preference. Write Concern at MongoDB Manual

Suggested: Use the wtimeout option to aviod write operation blocking indefinitely

Releases

No releases published

Packages

No packages published