public class CopyImpl extends AbstractTransfer implements Copy
Transfer.TransferState
listenerChain, monitor, state, stateChangeListeners
Constructor and Description |
---|
CopyImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
TransferStateChangeListener stateChangeListener) |
Modifier and Type | Method and Description |
---|---|
CopyResult |
waitForCopyResult()
Waits for this copy operation to complete and returns the result of the
operation.
|
addProgressListener, addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, setState, unwrapExecutionException, waitForCompletion, waitForException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForException
public CopyImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, TransferStateChangeListener stateChangeListener)
public CopyResult waitForCopyResult() throws AmazonClientException, AmazonServiceException, InterruptedException
waitForCopyResult
in interface Copy
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.Copyright © 2022. All rights reserved.