final class ListDatabasesIterableImpl<TResult> extends MongoIterableImpl<TResult> implements ListDatabasesIterable<TResult>
Modifier and Type | Field and Description |
---|---|
private CodecRegistry |
codecRegistry |
private Bson |
filter |
private long |
maxTimeMS |
private java.lang.Boolean |
nameOnly |
private java.lang.Class<TResult> |
resultClass |
Constructor and Description |
---|
ListDatabasesIterableImpl(ClientSession clientSession,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
AsyncOperationExecutor executor) |
Modifier and Type | Method and Description |
---|---|
(package private) AsyncReadOperation<AsyncBatchCursor<TResult>> |
asAsyncReadOperation() |
ListDatabasesIterable<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
ListDatabasesIterable<TResult> |
filter(Bson filter)
Sets the query filter to apply to the returned database names.
|
ListDatabasesIterable<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
ListDatabasesIterable<TResult> |
nameOnly(java.lang.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.
|
batchCursor, first, forEach, getBatchSize, getClientSession, getExecutor, getReadConcern, getReadPreference, into, map, toBsonDocumentOrNull, toBsonDocumentOrNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchCursor, first, forEach, into, map
private final java.lang.Class<TResult> resultClass
private final CodecRegistry codecRegistry
private long maxTimeMS
private Bson filter
private java.lang.Boolean nameOnly
ListDatabasesIterableImpl(ClientSession clientSession, java.lang.Class<TResult> resultClass, CodecRegistry codecRegistry, ReadPreference readPreference, AsyncOperationExecutor executor)
public ListDatabasesIterable<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
ListDatabasesIterable
maxTime
in interface ListDatabasesIterable<TResult>
maxTime
- the max timetimeUnit
- the time unit, which may not be nullpublic ListDatabasesIterable<TResult> batchSize(int batchSize)
MongoIterable
batchSize
in interface ListDatabasesIterable<TResult>
batchSize
in interface MongoIterable<TResult>
batchSize
in class MongoIterableImpl<TResult>
batchSize
- the batch sizepublic ListDatabasesIterable<TResult> filter(Bson filter)
ListDatabasesIterable
filter
in interface ListDatabasesIterable<TResult>
filter
- the filter, which may be null.public ListDatabasesIterable<TResult> nameOnly(java.lang.Boolean nameOnly)
ListDatabasesIterable
nameOnly
in interface ListDatabasesIterable<TResult>
nameOnly
- the nameOnly flag, which may be nullAsyncReadOperation<AsyncBatchCursor<TResult>> asAsyncReadOperation()
asAsyncReadOperation
in class MongoIterableImpl<TResult>