Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mkp05/2538c1145d59e3a0731df88f6b11d2cd to your computer and use it in GitHub Desktop.
Save mkp05/2538c1145d59e3a0731df88f6b11d2cd to your computer and use it in GitHub Desktop.
https://jira.mongodb.org/browse/JAVA-244
Valid Java URI Options, first pass:
maxPoolSize -> MongoOptions.connectionsPerHost
minPoolSize -> <NO MAPPING>
waitQueueMultiple -> MongoOptions.threadsAllowedToBlockForConnectionMultiplier
waitQueueTimeoutMS -> MongoOptions.maxWaitTime
connectTimeoutMS -> MongoOptions.connectTimeout
socketTimeoutMS -> MongOptions.socketTimeout
autoConnectRetry -> MongOptions.autoConnectRetry
slaveOK -> MongoOptions.slaveOK
safe -> MongoOptions.safe
w -> MongoOptions.w
wtimeout -> MongoOptions.wtimeout
fsync -> MongOptions.fsync
Currently , No way for Java driver to support speced options of connect=direct|replset or replicaset=name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment