public class ResumableDownloadMonitor extends Object implements Callable<File>, TransferMonitor
| Modifier and Type | Method and Description |
|---|---|
File |
call() |
static ResumableDownloadMonitor |
create(ProgressListenerChain listener,
com.qcloud.cos.transfer.ResumableDownloadSubmitter downloadSubmitter,
DownloadImpl transfer,
ExecutorService threadPool,
PersistableResumeDownload downloadRecord,
File destFile,
FileChannel destFileChannel) |
Future<File> |
getFuture()
Returns a Future to wait on.
|
boolean |
isDone()
Returns whether the transfer is completed.
|
public Future<File> getFuture()
TransferMonitorgetFuture in interface TransferMonitorpublic static ResumableDownloadMonitor create(ProgressListenerChain listener, com.qcloud.cos.transfer.ResumableDownloadSubmitter downloadSubmitter, DownloadImpl transfer, ExecutorService threadPool, PersistableResumeDownload downloadRecord, File destFile, FileChannel destFileChannel)
public boolean isDone()
TransferMonitorisDone in interface TransferMonitorCopyright © 2023. All rights reserved.