Interface ReactiveChangeStreamOperation

All Known Subinterfaces:
ReactiveFluentMongoOperations, ReactiveMongoOperations
All Known Implementing Classes:
ReactiveMongoTemplate

public interface ReactiveChangeStreamOperation
ReactiveChangeStreamOperation allows creation and execution of reactive MongoDB Change Stream operations in a fluent API style.
The starting domainType is used for mapping a potentially given TypedAggregation used for filtering. By default, the originating domainType is also used for mapping back the result from the Document. However, it is possible to define an different returnType via as.
The collection to operate on is optional in which case call collection with the actual database are watched, use watchCollection to define a fixed collection.
     
         changeStream(Jedi.class)
             .watchCollection("star-wars")
             .filter(where("operationType").is("insert"))
             .resumeAt(Instant.now())
             .listen();
     
 
Since:
2.2
Author:
Christoph Strobl