public abstract class MultipleFileTransfer extends AbstractTransfer
Transfer.TransferState
限定符和类型 | 字段和说明 |
---|---|
protected Collection<? extends Transfer> |
subTransfers |
monitor, progressListenerChain, progressListenerChainCallbackExecutor, state, stateChangeListeners
限定符和类型 | 方法和说明 |
---|---|
void |
collateFinalState()
Set the state based on the states of all file downloads.
|
void |
setState(Transfer.TransferState state)
Override this method so that TransferState updates are also sent out to the
progress listener chain in forms of ProgressEvent.
|
addProgressListener, addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, 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.
public void setState(Transfer.TransferState state)
setState
在类中 AbstractTransfer
Copyright © 2016. All rights reserved.