Module spring.data.mongodb
Interface ReactiveUpdateOperation.UpdateWithUpdate<T>
- All Known Subinterfaces:
ReactiveUpdateOperation.ReactiveUpdate<T>,ReactiveUpdateOperation.UpdateWithQuery<T>
- Enclosing interface:
- ReactiveUpdateOperation
public static interface ReactiveUpdateOperation.UpdateWithUpdate<T>
Declare the
Update to apply.-
Method Summary
Modifier and TypeMethodDescriptionapply(UpdateDefinition update) Set theUpdateDefinitionto be applied.replaceWith(T replacement) Specifyreplacementobject.
-
Method Details
-
apply
Set theUpdateDefinitionto be applied.- Parameters:
update- must not be null.- Returns:
- new instance of
ReactiveUpdateOperation.TerminatingUpdate. Never null. - Throws:
IllegalArgumentException- if update is null.- Since:
- 3.0
- See Also:
-
replaceWith
Specifyreplacementobject.- Parameters:
replacement- must not be null.- Returns:
- new instance of
FindAndReplaceOptions. - Throws:
IllegalArgumentException- if options is null.- Since:
- 2.1
-