Package io.quarkus.mongodb
Class DatabaseListOptions
- java.lang.Object
-
- io.quarkus.mongodb.DatabaseListOptions
-
public class DatabaseListOptions extends Object
Options to configure the stream of database.- See Also:
ReactiveMongoClient#listDatabases(DatabaseListOptions)
-
-
Constructor Summary
Constructors Constructor Description DatabaseListOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
maxTime
public DatabaseListOptions maxTime(long maxTime, TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max timetimeUnit
- the time unit, which may not be null- Returns:
- this
-
filter
public DatabaseListOptions filter(org.bson.conversions.Bson filter)
Sets the query filter to apply to the returned database names.- Parameters:
filter
- the filter, which may be null.- Returns:
- this
-
nameOnly
public 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.- Parameters:
nameOnly
- the nameOnly flag, which may be null- Returns:
- this
-
apply
public <T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> apply(com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> publisher)
-
-