public class DownloadMonitor extends Object implements TransferMonitor
Constructor and Description |
---|
DownloadMonitor(AbstractTransfer download,
Future<File> future) |
Modifier and Type | Method and Description |
---|---|
Future<File> |
getFuture()
Returns a Future to wait on.
|
boolean |
isDone()
Returns whether the transfer is completed.
|
void |
setFuture(Future<File> future) |
public DownloadMonitor(AbstractTransfer download, Future<File> future)
public Future<File> getFuture()
TransferMonitor
getFuture
in interface TransferMonitor
public boolean isDone()
TransferMonitor
isDone
in interface TransferMonitor
Copyright © 2022. All rights reserved.