public interface ITaskHunter extends IDownloadSpeed.Lookup
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ITaskHunter.IMessageHandler
The message handler for a task.
|
static interface |
ITaskHunter.IStarter |
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Free the current hunter.
|
Throwable |
getErrorCause() |
String |
getEtag() |
int |
getRetryingTimes() |
long |
getSofarBytes() |
byte |
getStatus() |
long |
getTotalBytes() |
void |
intoLaunchPool()
Enter into the launch pool.
|
boolean |
isLargeFile() |
boolean |
isResuming() |
boolean |
isReusedOldFile() |
boolean |
pause() |
void |
reset()
Reset the hunter.
|
getSpeed, setMinIntervalUpdateSpeedvoid intoLaunchPool()
FileDownloadTaskLauncherboolean pause()
byte getStatus()
FileDownloadStatusvoid reset()
long getSofarBytes()
long getTotalBytes()
Throwable getErrorCause()
Null if has didn't occurred any error yet.int getRetryingTimes()
boolean isReusedOldFile()
true if didn't real start downloading but the old-file with target-path is
exist, and just reuse it. false otherwise.boolean isResuming()
true if the currently downloading is the downloading resuming from the
breakpoint. false downloading from the beginning.String getEtag()
boolean isLargeFile()
true if the file length is large than 1.99G, false otherwise.void free()