the underlying java ChangeStreamIterable
Sets the number of documents to return per batch.
Sets the number of documents to return per batch.
the batch size
this
Sets the collation options
Sets the collation options
A null value represents the server default.
the collation options to use
this
Sets the fullDocument value.
Sets the fullDocument value.
the fullDocument
this
Sets the maximum await execution time on the server for this operation.
Sets the maximum await execution time on the server for this operation.
the duration
this
Sets the logical starting point for the new change stream.
Sets the logical starting point for the new change stream.
the resume token
this
Request Observable
to start streaming data.
Request Observable
to start streaming data.
This is a "factory method" and can be called multiple times, each time starting a new Subscription.
Each Subscription
will work for only a single Observer.
If the Observable
rejects the subscription attempt or otherwise fails it will signal the error via Observer.onError.
the Observer
that will consume signals from this Observable
Handles the automatic boxing of a Java Observable
so it conforms to the interface.
Handles the automatic boxing of a Java Observable
so it conforms to the interface.
the Observer
that will consume signals from this Observable
Users should not have to implement this method but rather use the Scala Observable
.
Returns an Observable
containing the results of the change stream based on the document class provided.
Returns an Observable
containing the results of the change stream based on the document class provided.
the result type
the class to use for the raw result.
an Observable
Observable for change streams.
Note: The
ChangeStreamDocument
class will not be applicable for all change stream outputs. If using custom pipelines that radically change the result, the the ChangeStreamObservable#withDocumentClass method should be used to provide an alternative document format.The type of the result.
the underlying java ChangeStreamIterable
2.2
Requires MongoDB 3.6 or greater