final class ListIndexesIterableImpl<TResult> extends MongoIterableImpl<TResult> implements ListIndexesIterable<TResult>
| Modifier and Type | Field and Description |
|---|---|
private CodecRegistry |
codecRegistry |
private long |
maxTimeMS |
private MongoNamespace |
namespace |
private java.lang.Class<TResult> |
resultClass |
| Constructor and Description |
|---|
ListIndexesIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
AsyncOperationExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
(package private) AsyncReadOperation<AsyncBatchCursor<TResult>> |
asAsyncReadOperation() |
ListIndexesIterable<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
ListIndexesIterable<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
batchCursor, first, forEach, getBatchSize, getClientSession, getExecutor, getReadConcern, getReadPreference, into, map, toBsonDocumentOrNull, toBsonDocumentOrNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchCursor, first, forEach, into, mapprivate final MongoNamespace namespace
private final java.lang.Class<TResult> resultClass
private final CodecRegistry codecRegistry
private long maxTimeMS
ListIndexesIterableImpl(ClientSession clientSession, MongoNamespace namespace, java.lang.Class<TResult> resultClass, CodecRegistry codecRegistry, ReadPreference readPreference, AsyncOperationExecutor executor)
public ListIndexesIterable<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
ListIndexesIterablemaxTime in interface ListIndexesIterable<TResult>maxTime - the max timetimeUnit - the time unit, which may not be nullpublic ListIndexesIterable<TResult> batchSize(int batchSize)
MongoIterablebatchSize in interface ListIndexesIterable<TResult>batchSize in interface MongoIterable<TResult>batchSize in class MongoIterableImpl<TResult>batchSize - the batch sizeAsyncReadOperation<AsyncBatchCursor<TResult>> asAsyncReadOperation()
asAsyncReadOperation in class MongoIterableImpl<TResult>