TransferUtility@Deprecated public interface Upload extends Transfer
See TransferManager for more information about creating transfers.
Transfer.TransferState| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Deprecated.
Abort the current upload operation.
|
PersistableUpload |
pause()
Deprecated.
Pause the current upload operation and returns the information that can
be used to resume the upload.
|
PauseResult<PersistableUpload> |
tryPause(boolean forceCancelTransfers)
Deprecated.
Tries to pause the current upload operation and returns the information
that can be used to resume the upload.
|
UploadResult |
waitForUploadResult()
Deprecated.
Waits for this upload to complete and returns the result of this upload.
|
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForExceptionUploadResult waitForUploadResult() throws AmazonClientException, AmazonServiceException, InterruptedException
AmazonClientException - If any errors were encountered in the
client while making the request or handling the response.AmazonServiceException - If any errors occurred in Amazon S3 while
processing the request.InterruptedException - If this thread is interrupted while waiting
for the upload to complete.PersistableUpload pause() throws PauseException
TransferManagerConfiguration.getMultipartUploadThreshold().PauseFailure
exception is thrownPauseException - If failed to pause the operation.PauseResult<PersistableUpload> tryPause(boolean forceCancelTransfers)
TransferManagerConfiguration.getMultipartUploadThreshold().forceCancelTransfers - a boolean to forcefully abort the existing
uploads if pause cannot be done.void abort()
Copyright © 2020. All rights reserved.