TResult
- The type of the result.public interface ListCollectionsPublisher<TResult>
extends org.reactivestreams.Publisher<TResult>
Modifier and Type | Method and Description |
---|---|
ListCollectionsPublisher<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
ListCollectionsPublisher<TResult> |
filter(Bson filter)
Sets the query filter to apply to the query.
|
org.reactivestreams.Publisher<TResult> |
first()
Helper to return a publisher limited to the first result.
|
ListCollectionsPublisher<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
ListCollectionsPublisher<TResult> filter(Bson filter)
filter
- the filter, which may be null.ListCollectionsPublisher<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullListCollectionsPublisher<TResult> batchSize(int batchSize)
Overrides the Subscription.request(long)
value for setting the batch size, allowing for fine grained
control over the underlying cursor.
batchSize
- the batch sizeorg.reactivestreams.Publisher<TResult> first()