public static interface SerialExecutor.ExecutorTask
Modifier and Type | Method and Description |
---|---|
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. |
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.Copyright © 2015. All rights reserved.