public abstract static class TaskMultiplexer.TaskWrapper extends AbstractBackgroundTask
FileListQueryTask.AsyncTask.CancelledExceptionCANCELLED_RESULT, STATUS_CANCELLED, STATUS_COMPLETED, STATUS_FAILED, STATUS_READY, STATUS_RUNNING| Modifier | Constructor and Description |
|---|---|
protected |
TaskWrapper(TaskMultiplexer multiplexer)
Construct a new task wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
protected AsyncScheduler |
getSchedulerImpl()
Requests the scheduler that this task was scheduled with.
|
protected abstract BackgroundTask |
getSharedBackgroundTask()
Implementation-dependent routine for fetching the shared background
task that this request (and others) would multiplex on.
|
protected void |
initializeComplete()
Subclasses should call this after their constructor completes
to actually start the wrapper.
|
protected java.lang.Object |
runTaskImpl()
Implementation of this task.
|
protected abstract void |
saveResults(BackgroundTask task)
Implementation-dependent routine to save the results of the
background task.
|
cancel, cancelTaskImpl, getProgress, getProgressText, isCancelledImpl, requestCancelImpl, runImpl, setProgress, setProgressFromSubTask, setProgressFromSubTask, setProgressTextbailIfCancelled, getResult, getStatus, isFinished, requestCancel, run, sleep, waitUntilFinished, waitUntilFinishedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFinished, waitUntilFinishedprotected TaskWrapper(TaskMultiplexer multiplexer)
table - the file table to get a query task fromprotected void initializeComplete()
protected final AsyncScheduler getSchedulerImpl()
getSchedulerImpl in class AbstractBackgroundTaskprotected abstract BackgroundTask getSharedBackgroundTask()
protected abstract void saveResults(BackgroundTask task)
task - the background task that completedprotected java.lang.Object runTaskImpl()
throws AsyncTask.CancelledException
runTaskImpl in class AbstractBackgroundTaskCancelledException - if the task has been cancelledAsyncTask.CancelledException