public abstract class FileDownloadLargeFileListener extends FileDownloadListener
This listener will be used when the file size of the task is greater than 1.99G.
| Constructor and Description |
|---|
FileDownloadLargeFileListener() |
FileDownloadLargeFileListener(int priority)
Deprecated.
not handle priority any more
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
connected(BaseDownloadTask task,
String etag,
boolean isContinue,
int soFarBytes,
int totalBytes)
Deprecated.
replaced with
connected(BaseDownloadTask, String, boolean, long, long) |
protected void |
connected(BaseDownloadTask task,
String etag,
boolean isContinue,
long soFarBytes,
long totalBytes)
Connected
|
protected void |
paused(BaseDownloadTask task,
int soFarBytes,
int totalBytes)
Deprecated.
replaced with
paused(BaseDownloadTask, long, long) |
protected abstract void |
paused(BaseDownloadTask task,
long soFarBytes,
long totalBytes)
Download paused
|
protected void |
pending(BaseDownloadTask task,
int soFarBytes,
int totalBytes)
Deprecated.
replaced with
pending(BaseDownloadTask, long, long) |
protected abstract void |
pending(BaseDownloadTask task,
long soFarBytes,
long totalBytes)
Entry queue, and pending
|
protected void |
progress(BaseDownloadTask task,
int soFarBytes,
int totalBytes)
Deprecated.
replaced with
progress(BaseDownloadTask, long, long) |
protected abstract void |
progress(BaseDownloadTask task,
long soFarBytes,
long totalBytes) |
protected void |
retry(BaseDownloadTask task,
Throwable ex,
int retryingTimes,
int soFarBytes)
Deprecated.
replaced with
retry(BaseDownloadTask, Throwable, int, long) |
protected void |
retry(BaseDownloadTask task,
Throwable ex,
int retryingTimes,
long soFarBytes)
Start Retry
|
blockComplete, completed, error, isInvalid, started, warnpublic FileDownloadLargeFileListener()
public FileDownloadLargeFileListener(int priority)
FileDownloadLargeFileListener()protected abstract void pending(BaseDownloadTask task, long soFarBytes, long totalBytes)
task - Current tasksoFarBytes - Already downloaded bytes stored in the dbtotalBytes - Total bytes stored in the dbprotected void pending(BaseDownloadTask task, int soFarBytes, int totalBytes)
pending(BaseDownloadTask, long, long)FileDownloadListenerFileDownloadListener.started(BaseDownloadTask).pending in class FileDownloadListenertask - The tasksoFarBytes - Already downloaded bytes stored in the dbtotalBytes - Total bytes stored in the dbIFileDownloadMessenger.notifyPending(com.liulishuo.filedownloader.message.MessageSnapshot)protected void connected(BaseDownloadTask task, String etag, boolean isContinue, long soFarBytes, long totalBytes)
task - Current tasketag - ETagisContinue - Is resume from breakpointsoFarBytes - Number of bytes download so fartotalBytes - Total size of the download in bytesprotected void connected(BaseDownloadTask task, String etag, boolean isContinue, int soFarBytes, int totalBytes)
connected(BaseDownloadTask, String, boolean, long, long)FileDownloadListenerconnected in class FileDownloadListenertask - The tasketag - ETagisContinue - Is resume from breakpointsoFarBytes - Number of bytes download so fartotalBytes - Total size of the download in bytesIFileDownloadMessenger.notifyConnected(com.liulishuo.filedownloader.message.MessageSnapshot)protected abstract void progress(BaseDownloadTask task, long soFarBytes, long totalBytes)
task - Current tasksoFarBytes - Number of bytes download so fartotalBytes - Total size of the download in bytesprotected void progress(BaseDownloadTask task, int soFarBytes, int totalBytes)
progress(BaseDownloadTask, long, long)FileDownloadListenerprogress in class FileDownloadListenertask - The tasksoFarBytes - Number of bytes download so fartotalBytes - Total size of the download in bytesIFileDownloadMessenger.notifyProgress(com.liulishuo.filedownloader.message.MessageSnapshot)protected void retry(BaseDownloadTask task, Throwable ex, int retryingTimes, long soFarBytes)
task - Current taskex - why retryretryingTimes - How many times will retrysoFarBytes - Number of bytes download so farprotected void retry(BaseDownloadTask task, Throwable ex, int retryingTimes, int soFarBytes)
retry(BaseDownloadTask, Throwable, int, long)FileDownloadListenerBaseDownloadTask.setAutoRetryTimes(int) to retry and
start Retry.retry in class FileDownloadListenertask - The taskex - Why retryretryingTimes - How many times will retrysoFarBytes - Number of bytes download so farIFileDownloadMessenger.notifyRetry(com.liulishuo.filedownloader.message.MessageSnapshot)protected abstract void paused(BaseDownloadTask task, long soFarBytes, long totalBytes)
task - Current tasksoFarBytes - Number of bytes download so fartotalBytes - Total size of the download in bytesprotected void paused(BaseDownloadTask task, int soFarBytes, int totalBytes)
paused(BaseDownloadTask, long, long)FileDownloadListenerBaseDownloadTask.pause()
manually.paused in class FileDownloadListenertask - The tasksoFarBytes - Number of bytes download so fartotalBytes - Total size of the download in bytesIFileDownloadMessenger.notifyPaused(com.liulishuo.filedownloader.message.MessageSnapshot)