|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface SerialExecutor.ExecutorTask
A task to run in serial on the executor.
| Method Summary | |
|---|---|
void |
executeTask()
The portion of the task that will be executed on the executor's thread. |
long |
getTimeout()
Returns the number of milliseconds after which this task should be considered a lost cause. |
boolean |
merge(SerialExecutor.ExecutorTask other)
This will be called when one task is on the queue to be processed and another task is going to be added to the queue. |
void |
resultReceived()
After the task has been executed, this will be called on the ResultReceiver thread to post-process the results of the task. |
void |
timedOut()
This method is called instead of resultReceived() if the task
does not complete within the requisite time. |
| Method Detail |
|---|
boolean merge(SerialExecutor.ExecutorTask other)
long getTimeout()
timedOut()
will be called instead of resultReceived().
void executeTask()
InterruptedException as
meaning that the task should be aborted.
void resultReceived()
void timedOut()
resultReceived() if the task
does not complete within the requisite time.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||