public class UploadImpl extends AbstractTransfer implements Upload
Transfer.TransferStatelistenerChain, monitor, state, stateChangeListeners| 构造器和说明 |
|---|
UploadImpl(String description,
TransferProgress transferProgressInternalState,
ProgressListenerChain progressListenerChain,
TransferStateChangeListener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
Abort the current upload operation.
|
PersistableUpload |
getResumeableMultipartUploadId()
if isResumeableMultipartUploadAfterFailed is true, we can call getResumeableMultipartUploadId
to get upload info. then can resume to upload again..
|
boolean |
isResumeableMultipartUploadAfterFailed()
if multipart upload failed, whether we can upload again. if true, you can call
getResumeableMultipartUploadId to get upload info. then can resume to upload again..
|
PersistableUpload |
pause()
Pause the current upload operation and returns the information that can be used to resume the
upload.
|
PauseResult<PersistableUpload> |
tryPause(boolean forceCancelTransfers)
Tries to pause the current upload operation and returns the information that can be used to
resume the upload.
|
UploadResult |
waitForUploadResult()
Waits for this upload to complete and returns the result of this upload.
|
addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, setState, unwrapExecutionException, waitForCompletion, waitForExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForExceptionpublic UploadImpl(String description, TransferProgress transferProgressInternalState, ProgressListenerChain progressListenerChain, TransferStateChangeListener listener)
public UploadResult waitForUploadResult() throws CosClientException, CosServiceException, InterruptedException
waitForUploadResult 在接口中 UploadCosClientException - If any errors were encountered in the client while making the
request or handling the response.CosServiceException - If any errors occurred in Qcloud COS while processing the
request.InterruptedException - If this thread is interrupted while waiting for the upload to
complete.public PersistableUpload pause() throws PauseException
UploadTransferManagerConfiguration.getMultipartUploadThreshold().PauseFailure exception is thrownpause 在接口中 UploadPauseException - If failed to pause the operation.public PauseResult<PersistableUpload> tryPause(boolean forceCancelTransfers)
UploadTransferManagerConfiguration.getMultipartUploadThreshold().public void abort()
Uploadpublic boolean isResumeableMultipartUploadAfterFailed()
UploadisResumeableMultipartUploadAfterFailed 在接口中 Uploadpublic PersistableUpload getResumeableMultipartUploadId()
UploadgetResumeableMultipartUploadId 在接口中 UploadCopyright © 2022. All rights reserved.