Package com.mongodb
Class ParallelScanOptions.Builder
java.lang.Object
com.mongodb.ParallelScanOptions.Builder
- Enclosing class:
ParallelScanOptions
@NotThreadSafe
@Deprecated(since="2021-05-27")
public static class ParallelScanOptions.Builder
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A builder for the options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchSize
(int batchSize) Deprecated.The batch size to use for each cursor.build()
Deprecated.Creates a ParallelScanOptions with the settings initialised in this builder.numCursors
(int numCursors) Deprecated.Set the requested number of cursors to iterate in parallel.readPreference
(ReadPreference readPreference) Deprecated.The read preference to use.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
numCursors
Deprecated.Set the requested number of cursors to iterate in parallel. This is an upper bound and the server may provide fewer.- Parameters:
numCursors
- the number of cursors requested, which must be >= 1- Returns:
- this
-
batchSize
Deprecated.The batch size to use for each cursor.- Parameters:
batchSize
- the batch size, which must be >= 0- Returns:
- this
-
readPreference
Deprecated.The read preference to use.- Parameters:
readPreference
- the read preference- Returns:
- this
-
build
Deprecated.Creates a ParallelScanOptions with the settings initialised in this builder.- Returns:
- a new ParallelScanOptions.
-