public class AsyncTaskController extends StandardModelController<AsyncTask>
Modifier and Type | Field and Description |
---|---|
protected static String |
BUCKET_NAME |
protected static String |
PATH_NAME |
protected static String |
TABLE_NAME |
Constructor and Description |
---|
AsyncTaskController() |
Modifier and Type | Method and Description |
---|---|
TaskHealthInfo |
buildHealthInfo() |
Set<String> |
getUniqueFields()
Get all model field names that were marked as a unique key using the @UniqueKey
annotation on the getter.
|
static AsyncTaskController |
instance() |
void |
onPostLoadItem(AsyncTask task)
This gets called when we restart the application and reload all the tasks from the /pending folder
|
static void |
register() |
static void |
registerDbBased() |
static void |
registerEphemeral()
Registers an ephemeral version of the controller that will not actually store tasks to files.
|
static void |
registerFileBased() |
void |
reset()
If the datastore has been synced to memory, reset() will resync everything.
|
all, countForKey, detach, filter, filter, filterBy, filterByKey, filterChain, forId, forIdWithDeleted, forUniqueKey, getBucket, getKeyFields, getModelClass, getPersister, getReadonlyWrapper, getStash, hardDelete, init, isWritable, listForKey, newModel, newModel, newModel, onPostCreate, onPostSave, onPreCreatePrepare, onPreCreateValidate, onPreRead, onPreSavePrepare, onPreSaveValidate, originalForId, originalForId, postInitialize, preInitialize, save, setPersister, setWritable, softDelete
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
anyOf, anyOf, find, forIdOrNotFound, forUniqueKeyOrNotFound, onPostSaveAuditTrailLog, search, update, updateValues
protected static final String BUCKET_NAME
protected static final String PATH_NAME
protected static final String TABLE_NAME
public AsyncTaskController()
public static AsyncTaskController instance()
public static void register()
public static void registerDbBased()
public static void registerFileBased()
public static void registerEphemeral()
public void onPostLoadItem(AsyncTask task)
onPostLoadItem
in interface ModelController<AsyncTask>
onPostLoadItem
in class StandardModelController<AsyncTask>
task
- public TaskHealthInfo buildHealthInfo()
public Set<String> getUniqueFields()
ModelController
getUniqueFields
in interface ModelController<AsyncTask>
getUniqueFields
in class StandardModelController<AsyncTask>
public void reset()
ModelController
reset
in interface ModelController<AsyncTask>
reset
in class StandardModelController<AsyncTask>
Copyright © 2016. All rights reserved.