com.netease.cloud.services.nos.transfer.internal
public class UploadImpl extends AbstractTransfer implements Upload
Transfer.TransferState
monitor, progressListenerChain, stateChangeListeners
Constructor and Description |
---|
UploadImpl(String description,
TransferProgressImpl transferProgressInternalState,
ProgressListenerChain progressListenerChain,
TransferStateChangeListener listener) |
Modifier and Type | Method and Description |
---|---|
UploadResult |
waitForUploadResult()
Waits for this upload to complete and returns the result of this
upload.
|
addProgressListener, addStateChangeListener, getDescription, getMonitor, getProgress, getState, isDone, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, setState, unwrapExecutionException, waitForCompletion, waitForException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForException
public UploadImpl(String description, TransferProgressImpl transferProgressInternalState, ProgressListenerChain progressListenerChain, TransferStateChangeListener listener)
public UploadResult waitForUploadResult() throws ClientException, ServiceException, InterruptedException
waitForUploadResult
in interface Upload
ClientException
- If any errors were encountered in the client while making the
request or handling the response.ServiceException
- If any errors occurred in Amazon Nos while processing the
request.InterruptedException
- If this thread is interrupted while waiting for the upload to
complete.Copyright © 2017. All Rights Reserved.