public abstract class AbstractBulkRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
bucketName |
protected TaskProgressListener |
listener |
protected int |
taskProgressInterval |
protected int |
taskQueueNum |
protected int |
taskThreadNum |
Constructor and Description |
---|
AbstractBulkRequest() |
AbstractBulkRequest(String bucketName) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected String bucketName
protected TaskProgressListener listener
protected int taskThreadNum
protected int taskQueueNum
protected int taskProgressInterval
public AbstractBulkRequest()
public AbstractBulkRequest(String bucketName)
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- Bucket namepublic TaskProgressListener getProgressListener()
public void setProgressListener(TaskProgressListener listener)
listener
- Progress listenerpublic int getTaskThreadNum()
public void setTaskThreadNum(int taskThreadNum)
taskThreadNum
- Maximum number of threadspublic int getTaskQueueNum()
public void setTaskQueueNum(int taskQueueNum)
taskQueueNum
- Length of the task queuepublic int getProgressInterval()
public void setProgressInterval(int taskProgressInterval)
taskProgressInterval
- Callback threshold of the task progress listenerCopyright © 2019. All rights reserved.