@@ -53,7 +53,7 @@ String` tab to see the corresponding code.
5353 :tabid: mongoclientsettings
5454
5555 .. literalinclude:: /includes/connect/CsotExample.kt
56- :language: java
56+ :language: kotlin
5757 :start-after: start-mongoclientsettings
5858 :end-before: end-mongoclientsettings
5959 :dedent:
@@ -63,7 +63,7 @@ String` tab to see the corresponding code.
6363 :tabid: connection-string
6464
6565 .. literalinclude:: /includes/connect/CsotExample.kt
66- :language: java
66+ :language: kotlin
6767 :start-after: start-string
6868 :end-before: end-string
6969 :dedent:
@@ -104,7 +104,7 @@ a timeout of ``200`` milliseconds at the client level, and then calls the
104104``MongoCollection.insertOne()`` method:
105105
106106.. literalinclude:: /includes/connect/CsotExample.kt
107- :language: java
107+ :language: kotlin
108108 :start-after: start-operation-timeout
109109 :end-before: end-operation-timeout
110110 :dedent:
@@ -171,7 +171,7 @@ The following example demonstrates how a collection-level timeout
171171configuration can override a client-level timeout configuration:
172172
173173.. literalinclude:: /includes/connect/CsotExample.kt
174- :language: java
174+ :language: kotlin
175175 :start-after: start-override
176176 :end-before: end-override
177177 :dedent:
@@ -196,7 +196,7 @@ The following code demonstrates how to set the ``defaultTimeout`` when
196196instantiating a ``ClientSession``:
197197
198198.. literalinclude:: /includes/connect/CsotExample.kt
199- :language: java
199+ :language: kotlin
200200 :start-after: start-session-timeout
201201 :end-before: end-session-timeout
202202 :dedent:
@@ -210,7 +210,7 @@ option applies a timeout to all operations performed in the scope of the
210210transaction:
211211
212212.. literalinclude:: /includes/connect/CsotExample.kt
213- :language: java
213+ :language: kotlin
214214 :start-after: start-transaction-timeout
215215 :end-before: end-transaction-timeout
216216 :dedent:
@@ -278,7 +278,7 @@ the cursor is initialized and all documents are retrieved within the
278278inherited timeout:
279279
280280.. literalinclude:: /includes/connect/CsotExample.kt
281- :language: java
281+ :language: kotlin
282282 :start-after: start-cursor-lifetime
283283 :end-before: end-cursor-lifetime
284284 :dedent:
@@ -298,7 +298,7 @@ by using a cursor with the ``ITERATION`` timeout mode, and then retrieves
298298and prints the ``name`` field value for each document:
299299
300300.. literalinclude:: /includes/connect/CsotExample.kt
301- :language: java
301+ :language: kotlin
302302 :start-after: start-cursor-iteration
303303 :end-before: end-cursor-iteration
304304 :dedent:
0 commit comments