Class BulkWriteOptions
java.lang.Object
org.springframework.data.mongodb.core.bulk.BulkWriteOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumExecution order for bulk write operations. -
Method Summary
Modifier and TypeMethodDescriptiongetOrder()Returns the execution order for the bulk write.static BulkWriteOptionsordered()Returns options for ordered execution: operations run serially and execution stops on the first error.static BulkWriteOptionsReturns options for unordered execution: operations may run in any order (possibly in parallel) and execution continues even if some operations fail.
-
Method Details
-
ordered
Returns options for ordered execution: operations run serially and execution stops on the first error.- Returns:
- options for ordered bulk write; never null.
-
unordered
Returns options for unordered execution: operations may run in any order (possibly in parallel) and execution continues even if some operations fail.- Returns:
- options for unordered bulk write; never null.
-
getOrder
Returns the execution order for the bulk write.- Returns:
- the
BulkWriteOptions.Order; never null.
-