public class PostDownloadHandler extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private List<Future<?>> |
futures |
private DownloadTask |
task |
Constructor and Description |
---|
PostDownloadHandler(DownloadTask task,
Future<?>... futures)
constructor
|
PostDownloadHandler(DownloadTask task,
Future<?> future)
constructor
|
PostDownloadHandler(DownloadTask task,
List<Future<?>> futures)
constructor
|
private DownloadTask task
public PostDownloadHandler(DownloadTask task, Future<?> future)
task
- the asynchronous download taskfuture
- the future on which the completion of the download task can be synchronizedpublic PostDownloadHandler(DownloadTask task, Future<?>... futures)
task
- the asynchronous download taskfutures
- the futures on which the completion of the download task can be synchronizedpublic PostDownloadHandler(DownloadTask task, List<Future<?>> futures)
task
- the asynchronous download taskfutures
- the futures on which the completion of the download task can be synchronized