Skip to content

Commit d3f7200

Browse files
committed
remove maxtime
(cherry picked from commit 40d900b)
1 parent febc70c commit d3f7200

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

source/read/count-documents.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ The following table describes the methods in the ``CountOptions`` class:
121121
returns. For more information, see :manual:`cursor
122122
</reference/glossary/#std-term-cursor>` in the {+mdb-server+} documentation.
123123

124-
* - ``MaxTime(long maxTime, TimeUnit timeUnit)``
125-
- | Sets the maximum execution time on the server for the operation. If the
126-
operation does not complete before the time limit, the driver terminates
127-
the operation.
128-
129124
* - ``skip(int skip)``
130125
- | Sets the number of documents the query skips before returning results.
131126
For more information, see :manual:`skip </reference/method/cursor.skip/#cursor.skip>` in the
@@ -199,11 +194,6 @@ The following table describes the options you can set to customize ``estimatedDo
199194
fields </reference/command/insert/#command-fields>` guide in the
200195
{+mdb-server+} manual.
201196

202-
* - ``MaxTime(long maxTime, TimeUnit timeUnit)``
203-
- | Sets the maximum execution time on the server for the operation. If the
204-
operation does not complete before the time limit, the driver terminates
205-
the operation.
206-
207197
Modify Estimated Count Example
208198
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
209199

@@ -229,4 +219,4 @@ guide, see the following API documentation:
229219

230220
- `countDocuments() <{+rs-driver-api+}/MongoCollection.html#countDocuments()>`__
231221
- `estimatedDocumentCount() <{+rs-driver-api+}/MongoCollection.html#estimatedDocumentCount()>`__
232-
- `Collation <{+rs-driver-api+}/FindPublisher.html#collation(com.mongodb.client.model.Collation)>`__
222+
- `Collation <{+rs-driver-api+}/FindPublisher.html#collation(com.mongodb.client.model.Collation)>`__

source/read/distinct.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ The following table describes some methods you can use to customize the
131131
* - ``filter()``
132132
- | Sets the query filter to apply to the query.
133133

134-
* - ``maxTime()``
135-
- | Sets the maximum amount of time to allow the operation to run, in milliseconds.
136-
137134
For a complete list of methods you can use to modify the ``distinct()`` method, see
138135
the `DistinctPublisher <{+rs-driver-api+}/DistinctPublisher.html>`__ API documentation.
139136

@@ -172,4 +169,4 @@ To learn more about any of the methods or types discussed in this
172169
guide, see the following API documentation:
173170

174171
- `distinct() <{+rs-driver-api+}/MongoCollection.html#distinct(java.lang.String,java.lang.Class)>`__
175-
- `DistinctPublisher <{+rs-driver-api+}/DistinctPublisher.html>`__
172+
- `DistinctPublisher <{+rs-driver-api+}/DistinctPublisher.html>`__

source/read/retrieve-data.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,14 @@ to it. The following table describes commonly used methods:
152152
For more information, see the :manual:`hint statement </reference/command/delete/#std-label-deletes-array-hint>`
153153
in the MongoDB Server manual.
154154

155-
* - ``maxTime(long maxTime, TimeUnit timeUnit)``
156-
- | Sets the maximum execution time on the server for this operation. If this time is
157-
exceeded, the {+driver-short+} aborts the operation and raises an ``ExecutionTimeout``.
158-
159155
The following example uses the ``find()`` method to find all documents where
160-
the ``"cuisine"`` field has the value ``"Italian"`` and sets a maximum execution
161-
time of 10 seconds:
156+
the ``"cuisine"`` field has the value ``"Italian"`` and sets a comment:
162157

163158
.. code-block:: java
164159
:copyable: true
165160

166161
FindPublisher<Document> findDocPublisher = restaurants.find(
167-
eq("cuisine", "Italian")).maxTime(10L, TimeUnit.SECONDS);
162+
eq("cuisine", "Italian")).comment("Find operation");
168163
Flux.from(findDocPublisher)
169164
.doOnNext(System.out::println)
170165
.blockLast();

0 commit comments

Comments
 (0)