public class DownloadTask extends Object
构造器和说明 |
---|
DownloadTask(DownloadResource downloadResource,
PoolManager.Pool pool,
Handler handler) |
DownloadTask(DownloadResource downloadResource,
PoolManager.Pool pool,
Handler handler,
boolean safe) |
限定符和类型 | 方法和说明 |
---|---|
protected Future<?> |
exec(DownloadResource downloadResource,
DownloadResponseHandler responseHandler) |
void |
interrupt() |
boolean |
isRunning() |
protected void |
remove() |
protected void |
restart() |
void |
resume() |
void |
sendDownloadMessage(int what,
DownloadResource obj) |
void |
setDownloadNotification(DownloadNotification downloadNotification) |
protected void |
start() |
protected void |
stop() |
public DownloadTask(DownloadResource downloadResource, PoolManager.Pool pool, Handler handler)
public DownloadTask(DownloadResource downloadResource, PoolManager.Pool pool, Handler handler, boolean safe)
public void setDownloadNotification(DownloadNotification downloadNotification)
protected Future<?> exec(DownloadResource downloadResource, DownloadResponseHandler responseHandler)
protected void start()
protected void restart()
public void resume()
protected void stop()
public void interrupt()
protected void remove()
public boolean isRunning()
public void sendDownloadMessage(int what, DownloadResource obj)