public class DownloadMonitor extends java.lang.Object implements TransferMonitor
Modifier and Type | Field and Description |
---|---|
private DownloadImpl |
download |
private java.util.concurrent.Future<?> |
future |
Constructor and Description |
---|
DownloadMonitor(DownloadImpl download,
java.util.concurrent.Future<?> future) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<?> |
getFuture()
Returns a Future to wait on.
|
boolean |
isDone()
Returns whether the transfer is completed.
|
private final java.util.concurrent.Future<?> future
private final DownloadImpl download
public DownloadMonitor(DownloadImpl download, java.util.concurrent.Future<?> future)
public java.util.concurrent.Future<?> getFuture()
TransferMonitor
getFuture
in interface TransferMonitor
public boolean isDone()
TransferMonitor
isDone
in interface TransferMonitor