@@ -53,7 +53,7 @@ String` tab to see the corresponding code.
53
53
:tabid: mongoclientsettings
54
54
55
55
.. literalinclude:: /includes/connect/CsotExample.kt
56
- :language: java
56
+ :language: kotlin
57
57
:start-after: start-mongoclientsettings
58
58
:end-before: end-mongoclientsettings
59
59
:dedent:
@@ -63,7 +63,7 @@ String` tab to see the corresponding code.
63
63
:tabid: connection-string
64
64
65
65
.. literalinclude:: /includes/connect/CsotExample.kt
66
- :language: java
66
+ :language: kotlin
67
67
:start-after: start-string
68
68
:end-before: end-string
69
69
:dedent:
@@ -104,7 +104,7 @@ a timeout of ``200`` milliseconds at the client level, and then calls the
104
104
``MongoCollection.insertOne()`` method:
105
105
106
106
.. literalinclude:: /includes/connect/CsotExample.kt
107
- :language: java
107
+ :language: kotlin
108
108
:start-after: start-operation-timeout
109
109
:end-before: end-operation-timeout
110
110
:dedent:
@@ -171,7 +171,7 @@ The following example demonstrates how a collection-level timeout
171
171
configuration can override a client-level timeout configuration:
172
172
173
173
.. literalinclude:: /includes/connect/CsotExample.kt
174
- :language: java
174
+ :language: kotlin
175
175
:start-after: start-override
176
176
:end-before: end-override
177
177
:dedent:
@@ -196,7 +196,7 @@ The following code demonstrates how to set the ``defaultTimeout`` when
196
196
instantiating a ``ClientSession``:
197
197
198
198
.. literalinclude:: /includes/connect/CsotExample.kt
199
- :language: java
199
+ :language: kotlin
200
200
:start-after: start-session-timeout
201
201
:end-before: end-session-timeout
202
202
:dedent:
@@ -210,7 +210,7 @@ option applies a timeout to all operations performed in the scope of the
210
210
transaction:
211
211
212
212
.. literalinclude:: /includes/connect/CsotExample.kt
213
- :language: java
213
+ :language: kotlin
214
214
:start-after: start-transaction-timeout
215
215
:end-before: end-transaction-timeout
216
216
:dedent:
@@ -278,7 +278,7 @@ the cursor is initialized and all documents are retrieved within the
278
278
inherited timeout:
279
279
280
280
.. literalinclude:: /includes/connect/CsotExample.kt
281
- :language: java
281
+ :language: kotlin
282
282
:start-after: start-cursor-lifetime
283
283
:end-before: end-cursor-lifetime
284
284
:dedent:
@@ -298,7 +298,7 @@ by using a cursor with the ``ITERATION`` timeout mode, and then retrieves
298
298
and prints the ``name`` field value for each document:
299
299
300
300
.. literalinclude:: /includes/connect/CsotExample.kt
301
- :language: java
301
+ :language: kotlin
302
302
:start-after: start-cursor-iteration
303
303
:end-before: end-cursor-iteration
304
304
:dedent:
0 commit comments