public class UploadImpl extends AbstractTransfer implements Upload
Transfer.TransferStatemonitor, progressListenerChain, state, stateChangeListeners| Constructor and Description |
|---|
UploadImpl(java.lang.String description,
TransferProgress transferProgressInternalState,
ProgressListenerChain progressListenerChain,
TransferStateChangeListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort the current upload operation.
|
PersistableUpload |
pause()
Pause the current upload operation and returns the information that can
be used to resume the upload.
|
PauseResult<PersistableUpload> |
tryPause(boolean forceCancelTransfers)
Tries to pause the current upload operation and returns the information
that can be used to resume the upload.
|
UploadResult |
waitForUploadResult()
Waits for this upload to complete and returns the result of this
upload.
|
addProgressListener, addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, setState, unwrapExecutionException, waitForCompletion, waitForExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForCompletion, waitForExceptionpublic UploadImpl(java.lang.String description,
TransferProgress transferProgressInternalState,
ProgressListenerChain progressListenerChain,
TransferStateChangeListener listener)
public UploadResult waitForUploadResult() throws AmazonClientException, AmazonServiceException, java.lang.InterruptedException
waitForUploadResult in interface UploadAmazonClientException - 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.public PersistableUpload pause() throws PauseException
UploadTransferManagerConfiguration.getMultipartUploadThreshold().PauseFailure exception
is thrownpause in interface UploadPauseException - If failed to pause the operation.public PauseResult<PersistableUpload> tryPause(boolean forceCancelTransfers)
UploadTransferManagerConfiguration.getMultipartUploadThreshold().