T
- the operations result type.AsyncReadOperation<AsyncBatchCursor<T>>
, ReadOperation<BatchCursor<T>>
public class ListIndexesOperation<T> extends Object implements AsyncReadOperation<AsyncBatchCursor<T>>, ReadOperation<BatchCursor<T>>
Constructor | Description |
---|---|
ListIndexesOperationβ(MongoNamespace namespace,
Decoder<T> decoder) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
ListIndexesOperation<T> |
batchSizeβ(int batchSize) |
Sets the number of documents to return per batch.
|
BatchCursor<T> |
executeβ(ReadBinding binding) |
General execute which can return anything of type T
|
void |
executeAsyncβ(AsyncReadBinding binding,
SingleResultCallback<AsyncBatchCursor<T>> callback) |
General execute which can return anything of type T
|
Integer |
getBatchSizeβ() |
Gets the number of documents to return per batch.
|
long |
getMaxTimeβ(TimeUnit timeUnit) |
Gets the maximum execution time on the server for this operation.
|
ListIndexesOperation<T> |
maxTimeβ(long maxTime,
TimeUnit timeUnit) |
Sets the maximum execution time on the server for this operation.
|
public ListIndexesOperationβ(MongoNamespace namespace, Decoder<T> decoder)
namespace
- the database and collection namespace for the operation.decoder
- the decoder for the result documents.public Integer getBatchSizeβ()
public ListIndexesOperation<T> batchSizeβ(int batchSize)
batchSize
- the batch sizepublic long getMaxTimeβ(TimeUnit timeUnit)
timeUnit
- the time unit to return the result inpublic ListIndexesOperation<T> maxTimeβ(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullpublic BatchCursor<T> executeβ(ReadBinding binding)
ReadOperation
execute
in interface ReadOperation<T>
binding
- the binding to execute in the context ofpublic void executeAsyncβ(AsyncReadBinding binding, SingleResultCallback<AsyncBatchCursor<T>> callback)
AsyncReadOperation
executeAsync
in interface AsyncReadOperation<T>
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executed