public interface AsyncTaskPersister
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOldTasks()
Delete all tasks from the database that were completed more than 40 days ago
|
boolean |
lockForProcessing(AsyncTask task)
Lock the task in the datastore.
|
boolean |
markComplete(AsyncTask task)
Mark the task as completed.
|
boolean |
markFailed(AsyncTask task,
Throwable e)
Mark the last task execution as failed in the datastore.
|
boolean markFailed(AsyncTask task, Throwable e)
task - e - boolean markComplete(AsyncTask task)
task - boolean lockForProcessing(AsyncTask task)
task - void deleteOldTasks()
Copyright © 2016. All rights reserved.