Interface Copy
- All Superinterfaces:
Transfer
Represents an asynchronous copy request from one Amazon S3 location another.
See TransferManager
for more information about creating transfers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.amazonaws.services.s3.transfer.Transfer
Transfer.TransferState
-
Method Summary
Modifier and TypeMethodDescriptionWaits for the copy request to complete and returns the result of this request.Methods inherited from interface com.amazonaws.services.s3.transfer.Transfer
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForException
-
Method Details
-
waitForCopyResult
CopyResult waitForCopyResult() throws AmazonClientException, AmazonServiceException, InterruptedExceptionWaits for the copy request to complete and returns the result of this request. Be prepared to handle errors when calling this method. Any errors that occurred during the asynchronous transfer will be re-thrown through this method.- Returns:
- The result of this transfer.
- Throws:
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.
-