public class DatabaseListOptions extends Object
Constructor and Description |
---|
DatabaseListOptions() |
Modifier and Type | Method and Description |
---|---|
<T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> |
apply(com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> publisher) |
DatabaseListOptions |
filter(org.bson.conversions.Bson filter)
Sets the query filter to apply to the returned database names.
|
DatabaseListOptions |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
DatabaseListOptions |
nameOnly(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.
|
public DatabaseListOptions maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullpublic DatabaseListOptions filter(org.bson.conversions.Bson filter)
filter
- the filter, which may be null.public DatabaseListOptions nameOnly(boolean nameOnly)
nameOnly
- the nameOnly flag, which may be nullpublic <T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> apply(com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> publisher)
Copyright © 2019 JBoss by Red Hat. All rights reserved.