类 AbstractBulkRequest
java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.AbstractBulkRequest
Abstract class for request parameters of bulk tasks
-
字段概要
字段从类继承的字段 com.obs.services.model.GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intObtain the callback threshold of the task progress listener.Obtain the progress listener of the bulk task.intObtain the queue length of the bulk task.intObtain the maximum number of concurrent bulk tasks.voidsetProgressInterval(int taskProgressInterval) Set the callback threshold of the task progress listener.voidsetProgressListener(TaskProgressListener listener) Set the progress listener of the bulk task.voidsetTaskQueueNum(int taskQueueNum) Set the task queue length of the thread pool in the bulk task.voidsetTaskThreadNum(int taskThreadNum) Set the maximum number of concurrent bulk tasks.从类继承的方法 com.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaders, toString
-
字段详细资料
-
listener
-
taskThreadNum
protected int taskThreadNum -
taskQueueNum
protected int taskQueueNum -
taskProgressInterval
protected int taskProgressInterval
-
-
构造器详细资料
-
AbstractBulkRequest
public AbstractBulkRequest() -
AbstractBulkRequest
-
-
方法详细资料
-
getProgressListener
Obtain the progress listener of the bulk task.- 返回:
- Progress listener
-
setProgressListener
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
-