public static interface BaseDownloadTask.IRunningTask
Used in internal.
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Free the task.
|
int |
getAttachKey()
When the task is running, it must attach a key.
|
ITaskHunter.IMessageHandler |
getMessageHandler() |
BaseDownloadTask |
getOrigin() |
java.lang.Object |
getPauseLock()
Get the object as a lock for synchronized with the pause area.
|
boolean |
is(FileDownloadListener listener) |
boolean |
is(int id) |
boolean |
isContainFinishListener()
Whether contain finish listener or not.
|
boolean |
isMarkedAdded2List() |
boolean |
isOver() |
void |
markAdded2List()
Mark the task has already added to the downloading list.
|
void |
setAttachKeyByQueue(int key)
Set this task attach to the
key by the queue. |
void |
setAttachKeyDefault()
Set this task to the default key.
|
void |
startTaskByQueue()
Start the task by the queue handler.
|
void |
startTaskByRescue()
Start the task just because this task can't started by pass, and now, we try to rescue
this task and start it.
|
BaseDownloadTask getOrigin()
ITaskHunter.IMessageHandler getMessageHandler()
boolean is(int id)
true the id of the task is equal to the id.boolean is(FileDownloadListener listener)
true the listener of the task is equal to the listener.boolean isOver()
true if the task has already finished.int getAttachKey()
void setAttachKeyByQueue(int key)
key by the queue. In this case, this task must be a
task which belong to a queue, and will be started automatically by the queue.key - The attached key for this task.void setAttachKeyDefault()
boolean isMarkedAdded2List()
true the task has already added to the downloading list.void markAdded2List()
void free()
void startTaskByQueue()
void startTaskByRescue()
Currently, this rescue is occurred when the filedownloader service connected.
java.lang.Object getPauseLock()
boolean isContainFinishListener()
true if there is finish listener on the task.