|
||||||||||
| 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 defined Adapter or GrizzlyAdapter |
boolean |
finishExecute()
finish the processing on this connection until new data come. |
AsyncHandler |
getAsyncHandler()
Get the AsyncHandler who drive the asynchronous process. |
AsyncTask |
getAsyncTask()
Get the AsyncProcesssorTask. |
ProcessorTask |
getProcessorTask()
The ProcessorTask used to execute the request processing. |
boolean |
interrupt()
Interrupt the current request processing. |
boolean |
postExecute()
Commit the http response. |
boolean |
preExecute()
Pre-execute some http request operation like decoding the headers. |
boolean |
removeAsyncFilter(AsyncFilter asyncFilter)
Remove an AsyncFilter |
void |
reset()
Reset |
void |
setAsyncHandler(AsyncHandler asyncHandler)
Set the AsyncHandler who drive the asynchronous process. |
void |
setAsyncTask(AsyncTask task)
Set the AsyncProcesssorTask. |
void |
setProcessorTask(ProcessorTask task)
Set the ProcessorTask used to execute the request processing. |
| Method Detail |
|---|
boolean preExecute()
throws java.lang.Exception
java.lang.Exception
boolean interrupt()
throws java.lang.Exception
execute()
java.lang.Exception
boolean execute()
throws java.lang.Exception
Adapter or GrizzlyAdapter
java.lang.Exception
boolean postExecute()
throws java.lang.Exception
java.lang.Exception
boolean finishExecute()
throws java.lang.Exception
java.lang.Exceptionvoid setAsyncTask(AsyncTask task)
AsyncProcesssorTask.
AsyncTask getAsyncTask()
AsyncProcesssorTask.
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.
void setProcessorTask(ProcessorTask task)
ProcessorTask used to execute the request processing.
task - a ProcessorTaskProcessorTask getProcessorTask()
ProcessorTask used to execute the request processing.
ProcessorTask used to execute the request processing.void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||