public class AsyncTaskFilePersister extends JsonFilePersister implements AsyncTaskPersister
sortDirection, sortField| Constructor and Description | 
|---|
AsyncTaskFilePersister()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
attachWatcher()
The watcher for JsonTaskPersister only watches the manual entry folder. 
 | 
void | 
deleteOldTasks()
Delete all tasks from the database that were completed more than 40 days ago 
 | 
List | 
fetchAll()
Fetch all the items from the underlying data store. 
 | 
String | 
fullFilePathForObj(Model model)  | 
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. 
 | 
String | 
relativeFilePathForObj(Model model)  | 
void | 
watchEventCallback(String relativePath)
This callback occurs when the watcher finds a new file added to manual retry
 We load the task, delete the original file, then re-enqueue the task 
 | 
doFetchOne, getFileExtensions, persistfetchOne, fetchOne, fetchOne, filterChain, fullFilePathForId, getBucketFolderPath, getFileToIdMap, getIdToFileMap, getItemArrayName, hardDelete, init, isManyItemsPerFile, makeIdFromFilePath, makePathForObject, matchesExtension, onPostLoadFromFile, reloadIfNewer, setBucketFolderPath, setFileToIdMap, setIdToFileMap, setItemArrayName, setManyItemsPerFilegetBucket, getItemController, getModelClass, getStash, handleFetchOne, isDbBacked, onFetchOne, onPreRead, setBucket, setItemController, setModelClass, setStashpublic AsyncTaskFilePersister()
public List fetchAll()
PersisterfetchAll in interface PersisterfetchAll in class FilePersisterBasepublic void watchEventCallback(String relativePath)
watchEventCallback in interface PersisterwatchEventCallback in class FilePersisterBaserelativePath - public void attachWatcher()
attachWatcher in interface PersisterattachWatcher in class FilePersisterBasepublic boolean lockForProcessing(AsyncTask task)
AsyncTaskPersisterlockForProcessing in interface AsyncTaskPersisterpublic boolean markComplete(AsyncTask task)
AsyncTaskPersistermarkComplete in interface AsyncTaskPersisterpublic boolean markFailed(AsyncTask task, Throwable e)
AsyncTaskPersistermarkFailed in interface AsyncTaskPersisterpublic String fullFilePathForObj(Model model)
fullFilePathForObj in class FilePersisterBasepublic void deleteOldTasks()
AsyncTaskPersisterdeleteOldTasks in interface AsyncTaskPersisterpublic String relativeFilePathForObj(Model model)
relativeFilePathForObj in class FilePersisterBaseCopyright © 2016. All rights reserved.