Interface ReactiveRemoveOperation.RemoveWithCollection<T>
- All Superinterfaces:
ReactiveRemoveOperation.RemoveWithQuery<T>
,ReactiveRemoveOperation.TerminatingRemove<T>
- All Known Subinterfaces:
ReactiveRemoveOperation.ReactiveRemove<T>
- Enclosing interface:
- ReactiveRemoveOperation
public static interface ReactiveRemoveOperation.RemoveWithCollection<T>
extends ReactiveRemoveOperation.RemoveWithQuery<T>
Collection override (optional).
-
Method Summary
Modifier and TypeMethodDescriptioninCollection
(String collection) Explicitly set the name of the collection to perform the query on.Methods inherited from interface org.springframework.data.mongodb.core.ReactiveRemoveOperation.RemoveWithQuery
matching, matching
Methods inherited from interface org.springframework.data.mongodb.core.ReactiveRemoveOperation.TerminatingRemove
all, findAndRemove
-
Method Details
-
inCollection
Explicitly set the name of the collection to perform the query on.
Skip this step to use the default collection derived from the domain type.- Parameters:
collection
- must not be null nor empty.- Returns:
- new instance of
ReactiveRemoveOperation.RemoveWithCollection
. Never null. - Throws:
IllegalArgumentException
- if collection is null or empty.
-