Interface Copy
-
- All Superinterfaces:
Transfer
public interface Copy extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CopyResult
waitForCopyResult()
Waits 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 Detail
-
waitForCopyResult
CopyResult waitForCopyResult() throws AmazonClientException, AmazonServiceException, InterruptedException
Waits 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.
-
-