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.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
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
-