Skip to content

Commit 7001d9e

Browse files
vbabaninstIncMale
andauthored
Update driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/MongoCluster.java
Co-authored-by: Valentin Kovalenko <[email protected]>
1 parent ae8763f commit 7001d9e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/MongoCluster.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,17 @@ public interface MongoCluster {
376376
* This operation is not supported by MongoDB Atlas Serverless instances.</p>
377377
*
378378
* @param models The {@linkplain ClientNamespacedWriteModel individual write operations}.
379-
* @return The {@link Publisher} with a single element which could be: The {@link ClientBulkWriteResult} if the operation is successful.
380-
* The {@link ClientBulkWriteException} if and only if the operation is unsuccessful or partially unsuccessful,
381-
* and there is at least one of the following pieces of information to report:
382-
* {@link ClientBulkWriteException#getWriteConcernErrors()}, {@link ClientBulkWriteException#getWriteErrors()},
383-
* {@link ClientBulkWriteException#getPartialResult()}. The {@link MongoException} only if the operation is unsuccessful.
379+
* @return The {@link Publisher} signalling at most one element {@link ClientBulkWriteResult} if the operation is successful,
380+
* or the following errors:
381+
* <ul>
382+
* <li>
383+
* {@link ClientBulkWriteException} - If and only if the operation is unsuccessful or partially unsuccessful,
384+
* and there is at least one of the following pieces of information to report:
385+
* {@link ClientBulkWriteException#getWriteConcernErrors()}, {@link ClientBulkWriteException#getWriteErrors()},
386+
* {@link ClientBulkWriteException#getPartialResult()}.</li>
387+
* <li>
388+
* {@link MongoException} - Only if the operation is unsuccessful.</li>
389+
* </ul>
384390
* @since 5.3
385391
* @mongodb.server.release 8.0
386392
* @mongodb.driver.manual reference/command/bulkWrite/ bulkWrite

0 commit comments

Comments
 (0)