com.netease.cloud.services.nos.transfer.internal
public abstract class MultipleFileTransfer extends AbstractTransfer
Transfer.TransferState
Modifier and Type | Field and Description |
---|---|
protected Collection<? extends Transfer> |
subTransfers |
monitor, progressListenerChain, stateChangeListeners
Modifier and Type | Method and Description |
---|---|
void |
collateFinalState()
Set the state based on the states of all file downloads.
|
addProgressListener, addStateChangeListener, getDescription, getMonitor, getProgress, getState, isDone, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, setState, unwrapExecutionException, waitForCompletion, waitForException
protected final Collection<? extends Transfer> subTransfers
public void collateFinalState()
A single failed sub-transfer makes the entire transfer failed. If there are no failed sub-transfers, a single canceled sub-transfer makes the entire transfer canceled. Otherwise, we consider ourselves Completed.
Copyright © 2017. All Rights Reserved.