the underlying java FindObservable
Sets the cursor type.
Sets the cursor type.
the cursor type
this
Sets the query filter to apply to the query.
Sets the query filter to apply to the query.
the filter, which may be null.
this
Helper to return a Observable limited to just the first result the query.
Helper to return a Observable limited to just the first result the query.
**Note:** Sets limit in the background so only returns 1.
a Observable which will return the first item
Sets the limit to apply.
Sets the limit to apply.
the limit, which may be null
this
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query. This only applies to a TAILABLE_AWAIT cursor. When the cursor is not a TAILABLE_AWAIT cursor, this option is ignored.
On servers >= 3.2, this option will be specified on the getMore command as "maxTimeMS". The default is no value: no "maxTimeMS" is sent to the server with the getMore command.
On servers < 3.2, this option is ignored, and indicates that the driver should respect the server's default value
A zero value will be ignored.
the duration
the maximum await execution time in the given time unit
1.1
Sets the maximum execution time on the server for this operation.
Sets the maximum execution time on the server for this operation.
the duration
this
Sets the query modifiers to apply to this operation.
Sets the query modifiers to apply to this operation.
the query modifiers to apply, which may be null.
this
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.
true if cursor timeout is disabled
this
Users should not set this under normal circumstances.
Users should not set this under normal circumstances.
if oplog replay is enabled
this
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
if partial results for sharded clusters is enabled
this
Sets a document describing the fields to return for all matching documents.
Sets a document describing the fields to return for all matching documents.
the project document, which may be null.
this
Sets the number of documents to skip.
Sets the number of documents to skip.
the number of documents to skip
this
Sets the sort criteria to apply to the query.
Sets the sort criteria to apply to the query.
the sort criteria, which may be null.
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
.
Observable interface for Find.
The type of the result.
the underlying java FindObservable
1.0