|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Upload
Represents an asynchronous upload to Amazon S3.
See TransferManager
for more information about creating transfers.
TransferManager.upload(String, String, java.io.File)
,
TransferManager.upload(com.amazonaws.services.s3.model.PutObjectRequest)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.amazonaws.services.s3.transfer.Transfer |
---|
Transfer.TransferState |
Method Summary | |
---|---|
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. |
Methods inherited from interface com.amazonaws.services.s3.transfer.Transfer |
---|
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForException |
Method Detail |
---|
UploadResult waitForUploadResult() throws AmazonClientException, AmazonServiceException, java.lang.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.
java.lang.InterruptedException
- If this thread is interrupted while waiting for the upload to
complete.PersistableUpload pause() throws PauseException
TransferManagerConfiguration.getMultipartUploadThreshold()
.PauseFailure
exception
is thrown
PauseException
- 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()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |