public class ResumableUploadTask extends BaseMultipartUploadTask<ResumableUploadRequest,ResumableUploadResult> implements java.util.concurrent.Callable<ResumableUploadResult>
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
构造器和说明 |
---|
ResumableUploadTask(ResumableUploadRequest request,
OSSCompletedCallback<ResumableUploadRequest,ResumableUploadResult> completedCallback,
ExecutionContext context,
InternalRequestOperation apiOperation) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
abortThisUpload()
abort upload
|
protected void |
checkException() |
protected ResumableUploadResult |
doMultipartUpload()
do multipart upload task
|
protected void |
initMultipartUploadId()
init multipart upload id
|
protected void |
processException(java.lang.Exception e) |
protected void |
uploadPartFinish(PartETag partETag) |
call, ceilPartSize, checkCancel, checkInitData, checkPartSize, checkWaitCondition, completeMultipartUploadResult, notifyMultipartThread, onProgressCallback, preUploadPart, releasePool, uploadPart
public ResumableUploadTask(ResumableUploadRequest request, OSSCompletedCallback<ResumableUploadRequest,ResumableUploadResult> completedCallback, ExecutionContext context, InternalRequestOperation apiOperation)
protected void initMultipartUploadId() throws java.io.IOException, ClientException, ServiceException
BaseMultipartUploadTask
initMultipartUploadId
在类中 BaseMultipartUploadTask<ResumableUploadRequest,ResumableUploadResult>
java.io.IOException
ClientException
ServiceException
protected ResumableUploadResult doMultipartUpload() throws java.io.IOException, ClientException, ServiceException, java.lang.InterruptedException
BaseMultipartUploadTask
doMultipartUpload
在类中 BaseMultipartUploadTask<ResumableUploadRequest,ResumableUploadResult>
java.io.IOException
ClientException
ServiceException
java.lang.InterruptedException
protected void checkException() throws java.io.IOException, ServiceException, ClientException
checkException
在类中 BaseMultipartUploadTask<ResumableUploadRequest,ResumableUploadResult>
java.io.IOException
ServiceException
ClientException
protected void abortThisUpload()
BaseMultipartUploadTask
protected void processException(java.lang.Exception e)
protected void uploadPartFinish(PartETag partETag) throws java.lang.Exception
uploadPartFinish
在类中 BaseMultipartUploadTask<ResumableUploadRequest,ResumableUploadResult>
java.lang.Exception