public class MultipartUploadTask extends BaseMultipartUploadTask<MultipartUploadRequest,CompleteMultipartUploadResult> implements java.util.concurrent.Callable<CompleteMultipartUploadResult>
CPU_SIZE, KEEP_ALIVE_TIME, mApiOperation, MAX_CORE_POOL_SIZE, MAX_IMUM_POOL_SIZE, MAX_QUEUE_SIZE, mCheckCRC64, mCompletedCallback, mContext, mFileLength, mIsCancel, mLastPartSize, mLock, mPartAttr, mPartETags, mPartExceptionCount, mPoolExecutor, mProgressCallback, mRequest, mRunPartTaskCount, mUploadedLength, mUploadException, mUploadFile, mUploadFilePath, mUploadId, mUploadUri, PART_SIZE_ALIGN_NUM
构造器和说明 |
---|
MultipartUploadTask(InternalRequestOperation operation,
MultipartUploadRequest request,
OSSCompletedCallback<MultipartUploadRequest,CompleteMultipartUploadResult> completedCallback,
ExecutionContext context) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
abortThisUpload()
abort upload
|
protected CompleteMultipartUploadResult |
doMultipartUpload()
do multipart upload task
|
protected void |
initMultipartUploadId()
init multipart upload id
|
protected void |
preUploadPart(int readIndex,
int byteCount,
int partNumber) |
protected void |
processException(java.lang.Exception e) |
call, ceilPartSize, checkCancel, checkException, checkInitData, checkPartSize, checkWaitCondition, completeMultipartUploadResult, notifyMultipartThread, onProgressCallback, releasePool, uploadPart, uploadPartFinish
public MultipartUploadTask(InternalRequestOperation operation, MultipartUploadRequest request, OSSCompletedCallback<MultipartUploadRequest,CompleteMultipartUploadResult> completedCallback, ExecutionContext context)
protected void initMultipartUploadId() throws ClientException, ServiceException
BaseMultipartUploadTask
protected CompleteMultipartUploadResult doMultipartUpload() throws java.io.IOException, ServiceException, ClientException, java.lang.InterruptedException
BaseMultipartUploadTask
doMultipartUpload
在类中 BaseMultipartUploadTask<MultipartUploadRequest,CompleteMultipartUploadResult>
java.io.IOException
ServiceException
ClientException
java.lang.InterruptedException
protected void abortThisUpload()
BaseMultipartUploadTask
protected void processException(java.lang.Exception e)
protected void preUploadPart(int readIndex, int byteCount, int partNumber) throws java.lang.Exception
preUploadPart
在类中 BaseMultipartUploadTask<MultipartUploadRequest,CompleteMultipartUploadResult>
java.lang.Exception