Skip to content

Commit 2f5d92b

Browse files
committed
socket settings
1 parent d1d8bd8 commit 2f5d92b

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

source/connection/specify-connection-options/socket-settings.txt

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,34 @@ Overview
2020
In this guide, you can learn about how the {+driver-short+} manages socket
2121
settings.
2222

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
50+
to modify the driver's behavior:
2951

3052
.. list-table::
3153
:widths: 40 60

0 commit comments

Comments
 (0)