Package io.quarkus.mongodb
Class DatabaseListOptions
java.lang.Object
io.quarkus.mongodb.DatabaseListOptions
Options to configure the stream of database.
- See Also:
-
ReactiveMongoClient#listDatabases(DatabaseListOptions)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T>
apply
(com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> publisher) filter
(org.bson.conversions.Bson filter) Sets the query filter to apply to the returned database names.Sets the maximum execution time on the server for this operation.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.
-
Constructor Details
-
DatabaseListOptions
public DatabaseListOptions()
-
-
Method Details
-
maxTime
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
Sets the query filter to apply to the returned database names.- Parameters:
filter
- the filter, which may be null.- Returns:
- this
-
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)
-