public class DummyTaskPersister extends DummyPersister implements AsyncTaskPersister
| Constructor and Description |
|---|
DummyTaskPersister() |
| 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.
|
attachWatcher, fetchAll, fetchOne, fetchOne, filterChain, hardDelete, onPreRead, persist, watchEventCallbackgetBucket, getItemController, getModelClass, getStash, handleFetchOne, init, isDbBacked, onFetchOne, reloadIfNewer, setBucket, setItemController, setModelClass, setStashpublic DummyTaskPersister()
public boolean markFailed(AsyncTask task, Throwable e)
AsyncTaskPersistermarkFailed in interface AsyncTaskPersisterpublic boolean markComplete(AsyncTask task)
AsyncTaskPersistermarkComplete in interface AsyncTaskPersisterpublic boolean lockForProcessing(AsyncTask task)
AsyncTaskPersisterlockForProcessing in interface AsyncTaskPersisterpublic void deleteOldTasks()
AsyncTaskPersisterdeleteOldTasks in interface AsyncTaskPersisterCopyright © 2016. All rights reserved.