Package com.mongodb

Class ParallelScanOptions.Builder

  • Enclosing class:
    ParallelScanOptions

    @NotThreadSafe
    @Deprecated(since="2021-05-27")
    public static class ParallelScanOptions.Builder
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A builder for the options
    • Constructor Detail

      • Builder

        public Builder()
        Deprecated.
    • Method Detail

      • numCursors

        public ParallelScanOptions.Builder numCursors​(int 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

        public ParallelScanOptions.Builder batchSize​(int batchSize)
        Deprecated.
        The batch size to use for each cursor.
        Parameters:
        batchSize - the batch size, which must be >= 0
        Returns:
        this
      • readPreference

        public ParallelScanOptions.Builder readPreference​(ReadPreference readPreference)
        Deprecated.
        The read preference to use.
        Parameters:
        readPreference - the read preference
        Returns:
        this
      • build

        public ParallelScanOptions build()
        Deprecated.
        Creates a ParallelScanOptions with the settings initialised in this builder.
        Returns:
        a new ParallelScanOptions.