Class DatabaseListOptions


  • public class DatabaseListOptions
    extends Object
    Options to configure the stream of database.
    See Also:
    ReactiveMongoClient#listDatabases(DatabaseListOptions)
    • Constructor Detail

      • DatabaseListOptions

        public DatabaseListOptions()
    • 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 time
        timeUnit - 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)