com.obs.services.model

## 类 AbstractBulkRequest

- java.lang.Object
- - com.obs.services.model.GenericRequest
  - - com.obs.services.model.AbstractBulkRequest

- 直接已知子类:
    DropFolderRequest, PutObjectsRequest, RestoreObjectsRequest

      public abstract class AbstractBulkRequest
      extends GenericRequest

  Abstract class for request parameters of bulk tasks

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected String` | `bucketName`
    `protected TaskProgressListener` | `listener`
    `protected int` | `taskProgressInterval`
    `protected int` | `taskQueueNum`
    `protected int` | `taskThreadNum`

  - ### 构造器概要

    构造器
    构造器和说明
    `AbstractBulkRequest()`
    `AbstractBulkRequest(String bucketName)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Obtain the bucket name.
    `int` | `getProgressInterval()` Obtain the callback threshold of the task progress listener.
    `TaskProgressListener` | `getProgressListener()` Obtain the progress listener of the bulk task.
    `int` | `getTaskQueueNum()` Obtain the queue length of the bulk task.
    `int` | `getTaskThreadNum()` Obtain the maximum number of concurrent bulk tasks.
    `void` | `setBucketName(String bucketName)` Set the bucket name.
    `void` | `setProgressInterval(int taskProgressInterval)` Set the callback threshold of the task progress listener.
    `void` | `setProgressListener(TaskProgressListener listener)` Set the progress listener of the bulk task.
    `void` | `setTaskQueueNum(int taskQueueNum)` Set the task queue length of the thread pool in the bulk task.
    `void` | `setTaskThreadNum(int taskThreadNum)` Set the maximum number of concurrent bulk tasks.

    - ### 从类继承的方法 com.obs.services.model.GenericRequest

      `isRequesterPays, setRequesterPays, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 字段详细资料

    - #### bucketName

          protected String bucketName

    - #### listener

          protected TaskProgressListener listener

    - #### taskThreadNum

          protected int taskThreadNum

    - #### taskQueueNum

          protected int taskQueueNum

    - #### taskProgressInterval

          protected int taskProgressInterval

  - ### 构造器详细资料

    - #### AbstractBulkRequest

          public AbstractBulkRequest()

    - #### AbstractBulkRequest

          public AbstractBulkRequest(String bucketName)

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket name.
      参数:
        `bucketName` - Bucket name

    - #### getProgressListener

          public TaskProgressListener getProgressListener()

      Obtain the progress listener of the bulk task.
      返回:
        Progress listener

    - #### setProgressListener

          public void setProgressListener(TaskProgressListener listener)

      Set the progress listener of the bulk task.
      参数:
        `listener` - Progress listener

    - #### getTaskThreadNum

          public int getTaskThreadNum()

      Obtain the maximum number of concurrent bulk tasks. The default value is 10.
      返回:
        Maximum number of threads

    - #### setTaskThreadNum

          public void setTaskThreadNum(int taskThreadNum)

      Set the maximum number of concurrent bulk tasks. The default value is 10.
      参数:
        `taskThreadNum` - Maximum number of threads

    - #### getTaskQueueNum

          public int getTaskQueueNum()

      Obtain the queue length of the bulk task. The default value is 20000.
      返回:
        Length of the task queue

    - #### setTaskQueueNum

          public void setTaskQueueNum(int taskQueueNum)

      Set the task queue length of the thread pool in the bulk task. The default value is 20000.
      参数:
        `taskQueueNum` - Length of the task queue

    - #### getProgressInterval

          public int getProgressInterval()

      Obtain the callback threshold of the task progress listener. The default value is 50.
      返回:
        Callback threshold of the task progress listener

    - #### setProgressInterval

          public void setProgressInterval(int taskProgressInterval)

      Set the callback threshold of the task progress listener. The default value is 50.
      参数:
        `taskProgressInterval` - Callback threshold of the task progress listener

Copyright © 2021. All rights reserved.