-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-41123: cxn options #40
Conversation
👷 Deploy request for docs-kotlin-sync pending review.Visit the deploys page to approve it
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a small suggestion!
change settings at runtime and can help you catch errors at compile time. | ||
|
||
The following example shows how to set options when creating a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend adding a section just using the MongoClientSettings.builder eg:
MongoClientSettings
.builder()
.applyToClusterSettings { it.hosts(listOf(ServerAddress("127.0.0.1"))) }
.applyToSocketSettings { it.connectTimeout(60000, TimeUnit.MILLISECONDS) }
.applyToSslSettings { it.enabled(true) }
.build()
Then give the example below mixing a connection string and settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-41123
Staging - https://preview-mongodbrustagir.gatsbyjs.io/kotlin-sync/DOCSP-41123-options/connect/connection-options/
Self-Review Checklist