public class PostDownloadHandler extends java.lang.Object implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Future<?> |
future |
private DownloadTask |
task |
Constructor and Description |
---|
PostDownloadHandler(DownloadTask task,
java.util.concurrent.Future<?> future)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
private final DownloadTask task
private final java.util.concurrent.Future<?> future
public PostDownloadHandler(DownloadTask task, java.util.concurrent.Future<?> future)
task
- the asynchronous download taskfuture
- the future on which the completion of the download task can be synchronizedpublic void run()
run
in interface java.lang.Runnable