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 anAggregation
to filter matching events.Use acritera
to filter matching events via anMatchOperation
.Methods inherited from interface org.springframework.data.mongodb.core.ReactiveChangeStreamOperation.ResumingChangeStream
resumeAfter, resumeAt, startAfter
Methods inherited from interface org.springframework.data.mongodb.core.ReactiveChangeStreamOperation.TerminatingChangeStream
listen
-
Method Details
-
filter
Use anAggregation
to filter matching events.- Parameters:
by
- must not be null.- Returns:
- new instance of
ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection
. - Throws:
IllegalArgumentException
- if the givenAggregation
is null.
-
filter
Use acritera
to filter matching events via anMatchOperation
.- Parameters:
by
- must not be null.- Returns:
- new instance of
ReactiveChangeStreamOperation.ChangeStreamWithFilterAndProjection
. - Throws:
IllegalArgumentException
- if the givenCriteriaDefinition
is 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.
-