@@ -162,7 +162,7 @@ Example
162
162
163
163
This example demonstrates specifying a ``ConnectionString``:
164
164
165
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
165
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
166
166
:start-after: begin ConnectionString
167
167
:end-before: end ConnectionString
168
168
:language: java
@@ -290,7 +290,7 @@ Example
290
290
This example specifies for the driver to connect directly to a server,
291
291
regardless of the type of MongoDB cluster it's a part of:
292
292
293
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
293
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
294
294
:start-after: begin ClusterSettings
295
295
:end-before: end ClusterSettings
296
296
:language: java
@@ -380,7 +380,7 @@ This example specifies the following driver behavior in a pool of
380
380
- The thread to wait at most ``10 SECONDS`` for an available connection
381
381
- To have at most ``200`` connections associated with the pool
382
382
383
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
383
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
384
384
:start-after: begin ConnectionPoolSettings
385
385
:end-before: end ConnectionPoolSettings
386
386
:language: java
@@ -417,7 +417,7 @@ Example
417
417
This example specifies that the maximum number of characters for a single log
418
418
message is set to ``5000`` characters.
419
419
420
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
420
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
421
421
:start-after: begin LoggerSettings
422
422
:end-before: end LoggerSettings
423
423
:language: java
@@ -474,7 +474,7 @@ This example specifies the following driver behavior in a MongoDB deployment:
474
474
``700 MILLISECONDS``
475
475
- The cluster monitor to attempt reaching a server every ``15 SECONDS``
476
476
477
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
477
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
478
478
:start-after: begin ServerSettings
479
479
:end-before: end ServerSettings
480
480
:language: java
@@ -545,7 +545,7 @@ This example specifies the following driver behavior in a MongoDB socket:
545
545
- To connect to an available socket within ``10 SECONDS``
546
546
- To read from an available socket within ``15 SECONDS``
547
547
548
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
548
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
549
549
:start-after: begin SocketSettings
550
550
:end-before: end SocketSettings
551
551
:language: java
@@ -593,7 +593,7 @@ Example
593
593
This example specifies for the driver to enable TLS/SSL when connecting
594
594
to MongoDB:
595
595
596
- .. literalinclude:: /includes/fundamentals/code-snippets/mcs .java
596
+ .. literalinclude:: /includes/fundamentals/code-snippets/MCSettings .java
597
597
:start-after: begin SslSettings
598
598
:end-before: end SslSettings
599
599
:language: java
0 commit comments