public interface CombinedDownloader extends Shutdownable
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
download(CombinedDownloadTask<T> task,
CombinedDownloadCallback<T> callback)
Submits a combined download task asynchronously.
|
<T> Future<T> |
download(CombinedDownloadTask<T> task,
CombinedDownloadCallback<T> callback,
int tries)
Submits a combined download task asynchronously.
|
isShutdown, shutdown<T> Future<T> download(CombinedDownloadTask<T> task, CombinedDownloadCallback<T> callback)
T - the type of the CombinedDownloadTasktask - download taskcallback - download callbackNullPointerException - if task==nullRejectedExecutionException - if the downloader has been shutdown<T> Future<T> download(CombinedDownloadTask<T> task, CombinedDownloadCallback<T> callback, int tries)
T - the type of the CombinedDownloadTasktask - download taskcallback - download callbacktries - the max number of tries for each sub download taskNullPointerException - if task==nullIllegalArgumentException - if tries < 1RejectedExecutionException - if the downloader has been shutdownCopyright © 2016. All rights reserved.