public abstract static class TaskMultiplexer.TaskWrapper extends AbstractBackgroundTask
FileListQueryTask
.AsyncTask.CancelledException
CANCELLED_RESULT, STATUS_CANCELLED, STATUS_COMPLETED, STATUS_FAILED, STATUS_READY, STATUS_RUNNING
Modifier | Constructor and Description |
---|---|
protected |
TaskMultiplexer.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, setProgressText
bailIfCancelled, getResult, getStatus, isFinished, requestCancel, run, sleep, waitUntilFinished, waitUntilFinished
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFinished, waitUntilFinished
protected TaskMultiplexer.TaskWrapper(TaskMultiplexer multiplexer)
table
- the file table to get a query task fromprotected void initializeComplete()
protected final AsyncScheduler getSchedulerImpl()
getSchedulerImpl
in class AbstractBackgroundTask
protected 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 AbstractBackgroundTask
CancelledException
- if the task has been cancelledAsyncTask.CancelledException