Module spring.data.mongodb
Interface ReactiveInsertOperation.TerminatingInsert<T>
- All Known Subinterfaces:
ReactiveInsertOperation.ReactiveInsert<T>
- Enclosing interface:
- ReactiveInsertOperation
public static interface ReactiveInsertOperation.TerminatingInsert<T>
Compose insert execution by calling one of the terminating methods.
-
Method Summary
-
Method Details
-
one
Insert exactly one object.- Parameters:
object- must not be null.- Returns:
Monoemitting the insertedobjectwhen operation has completed. Never null.- Throws:
IllegalArgumentException- if object is null.
-
all
Insert a collection of objects.- Parameters:
objects- must not be null.- Returns:
- Flux emitting the inserted
objectsony by one. Never null. - Throws:
IllegalArgumentException- if objects is null.
-