Interface ListDatabasesIterable<T>

  • Type Parameters:
    T - The type of the result.
    All Superinterfaces:
    MongoIterable<T>

    Deprecated. 
    Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)

    @Deprecated
    public interface ListDatabasesIterable<T>
    extends MongoIterable<T>
    Iterable for ListDatabases.
    • Method Detail

      • maxTime

        ListDatabasesIterable<T> maxTime​(long maxTime,
                                         TimeUnit timeUnit)
        Deprecated. 
        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
        MongoDB documentation
        Max Time
      • filter

        ListDatabasesIterable<T> filter​(@Nullable
                                        Bson filter)
        Deprecated. 
        Sets the query filter to apply to the returned database names.
        Parameters:
        filter - the filter, which may be null.
        Returns:
        this
        Since:
        3.6
        Since server release
        3.4.2
      • nameOnly

        ListDatabasesIterable<T> nameOnly​(@Nullable
                                          Boolean nameOnly)
        Deprecated. 
        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
        Since:
        3.6
        Since server release
        3.4.3