Module spring.data.mongodb
Interface ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection<T>
- All Superinterfaces:
ReactiveChangeStreamOperation.ResumingChangeStream<T>,ReactiveChangeStreamOperation.TerminatingChangeStream<T>
- All Known Subinterfaces:
ReactiveChangeStreamOperation.ReactiveChangeStream<T>
- Enclosing interface:
- ReactiveChangeStreamOperation
public static interface ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection<T>
extends ReactiveChangeStreamOperation.ResumingChangeStream<T>, ReactiveChangeStreamOperation.TerminatingChangeStream<T>
Provide a filter for limiting results (optional).
-
Method Summary
Modifier and TypeMethodDescriptionDefine the target type fields should be mapped to.filter(Aggregation by) Use anAggregationto filter matching events.Use acriterato filter matching events via anMatchOperation.Methods inherited from interface org.springframework.data.mongodb.core.ReactiveChangeStreamOperation.ResumingChangeStream
resumeAfter, resumeAt, startAfterMethods inherited from interface org.springframework.data.mongodb.core.ReactiveChangeStreamOperation.TerminatingChangeStream
listen
-
Method Details
-
filter
Use anAggregationto filter matching events.- Parameters:
by- must not be null.- Returns:
- new instance of
ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection. - Throws:
IllegalArgumentException- if the givenAggregationis null.
-
filter
Use acriterato filter matching events via anMatchOperation.- Parameters:
by- must not be null.- Returns:
- new instance of
ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection. - Throws:
IllegalArgumentException- if the givenCriteriaDefinitionis null.
-
as
Define the target type fields should be mapped to.- Type Parameters:
R- result type.- Parameters:
resultType- must not be null.- Returns:
- new instance of
ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection. - Throws:
IllegalArgumentException- if resultType is null.
-