|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncExecutor
A interface used to define the execution of a AsyncTask
By default, AsyncTask
will invoke an implementation
of this interface in this order:
(1) preExecute()
(2) interrupt()
(3) postExecute()
Implementation of this interface must decide when a task must be interrupted.
Method Summary | |
---|---|
void |
addAsyncFilter(AsyncFilter asyncFilter)
Add a AsyncFilter |
boolean |
execute()
Execute the main operation on |
AsyncHandler |
getAsyncHandler()
Get the AsyncHandler who drive the asynchronous process. |
AsyncTask |
getAsyncTask()
Get the AsycnProcesssorTask . |
boolean |
interrupt()
Execute some operations on the AsycnProcesssorTask and then
interrupt it. |
boolean |
postExecute()
Post-execute some operations in the AsycnProcesssorTask
associated. |
boolean |
preExecute()
Pre-execute some operations in the AsycnProcesssorTask
associated. |
boolean |
removeAsyncFilter(AsyncFilter asyncFilter)
Remove an AsyncFilter |
void |
setAsyncHandler(AsyncHandler asyncHandler)
Set the AsyncHandler who drive the asynchronous process. |
void |
setAsyncTask(AsyncTask task)
Set the AsycnProcesssorTask . |
Method Detail |
---|
boolean preExecute() throws Exception
AsycnProcesssorTask
associated.
Exception
boolean interrupt() throws Exception
AsycnProcesssorTask
and then
interrupt it.
Exception
boolean execute() throws Exception
Exception
boolean postExecute() throws Exception
AsycnProcesssorTask
associated.
Exception
void setAsyncTask(AsyncTask task)
AsycnProcesssorTask
.
AsyncTask getAsyncTask()
AsycnProcesssorTask
.
void addAsyncFilter(AsyncFilter asyncFilter)
AsyncFilter
boolean removeAsyncFilter(AsyncFilter asyncFilter)
AsyncFilter
AsyncHandler getAsyncHandler()
AsyncHandler
who drive the asynchronous process.
void setAsyncHandler(AsyncHandler asyncHandler)
AsyncHandler
who drive the asynchronous process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |