ListDatabasesFlow

class ListDatabasesFlow<T : Any>(wrapped: ListDatabasesPublisher<T>) : Flow<T>

Flow implementation for list database operations.

Parameters

T

The type of the result.

See also

Constructors

Link copied to clipboard
constructor(wrapped: ListDatabasesPublisher<T>)

Functions

Link copied to clipboard
fun authorizedDatabasesOnly(authorizedDatabasesOnly: Boolean?): ListDatabasesFlow<T>

Sets the authorizedDatabasesOnly flag that indicates whether the command should return just the databases which the user is authorized to see.

Link copied to clipboard
fun batchSize(batchSize: Int): ListDatabasesFlow<T>

Sets the number of documents to return per batch.

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<T>)
Link copied to clipboard
fun comment(comment: BsonValue?): ListDatabasesFlow<T>

Sets the comment for this operation. A null value means no comment is set.

Link copied to clipboard
fun filter(filter: Bson?): ListDatabasesFlow<T>

Sets the query filter to apply to the returned database names.

Link copied to clipboard
fun maxTime(maxTime: Long, timeUnit: TimeUnit = TimeUnit.MILLISECONDS): ListDatabasesFlow<T>

Sets the maximum execution time on the server for this operation.

Link copied to clipboard

Sets the nameOnly flag that indicates whether the command should return just the database names or return the database names and size information.