You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/connection/specify-connection-options/socket-settings.txt
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,34 @@ Overview
20
20
In this guide, you can learn about how the {+driver-short+} manages socket
21
21
settings.
22
22
23
-
Chain the `applyToSocketSettings() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html#applyToSocketSettings(com.mongodb.Block)>`__
24
-
method to modify the driver's behavior when connecting and communicating
25
-
with your MongoDB deployment.
26
-
27
-
The following table describes the methods you can chain to your settings
28
-
to modify the driver's behavior:
23
+
You can specify settings for your sockets using either a :ref:`connection
24
+
string <connection-uri>` or by passing a ``MongoClientSettings`` object to the
25
+
:ref:`MongoClients <mongoclient>` contructor. Select the :guilabel:`Connection String` or :guilabel:`MongoClientSettings` tab to see the options available:
26
+
27
+
.. tabs::
28
+
29
+
.. tab:: Connection String
30
+
:tabid: uri
31
+
32
+
.. list-table::
33
+
:header-rows: 1
34
+
:widths: 20 10 20
35
+
36
+
* - Option Name
37
+
- Type
38
+
- Description
39
+
40
+
* -
41
+
42
+
.. tab:: Connection String
43
+
:tabid: uri
44
+
45
+
Chain the `applyToSocketSettings() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html#applyToSocketSettings(com.mongodb.Block)>`__
46
+
method to modify the driver's behavior when connecting and communicating
47
+
with your MongoDB deployment.
48
+
49
+
The following table describes the methods you can chain to your settings
0 commit comments