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