TResult
- The type of the result.public interface ListDatabasesPublisher<TResult>
extends org.reactivestreams.Publisher<TResult>
Modifier and Type | Method and Description |
---|---|
ListDatabasesPublisher<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
ListDatabasesPublisher<TResult> |
filter(Bson filter)
Sets the query filter to apply to the returned database names.
|
org.reactivestreams.Publisher<TResult> |
first()
Helper to return a publisher limited to the first result.
|
ListDatabasesPublisher<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
ListDatabasesPublisher<TResult> |
nameOnly(java.lang.Boolean nameOnly)
Sets the nameOnly flag that indicates whether the command should return just the database names or return the database names and
size information.
|
ListDatabasesPublisher<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullListDatabasesPublisher<TResult> filter(Bson filter)
filter
- the filter, which may be null.ListDatabasesPublisher<TResult> nameOnly(java.lang.Boolean nameOnly)
nameOnly
- the nameOnly flag, which may be nullListDatabasesPublisher<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()