public class TaskBase extends BackgroundTask
| Constructor and Description |
|---|
TaskBase(JavaPersistenceContext persistenceContext,
ThreadHelper threadHelper)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doInBackground()
doInBackground
|
Executable |
getExecutable() |
TransactionInfo |
getTransactionInfo()
Returns transaction information
|
void |
onCancelled(Boolean success)
Process signalled result after task has been cancelled.
|
void |
onPostExecute(Boolean success)
Process signalled result after task has run
|
call, getExecutionException, onPreExecute, setExecutionExceptionpublic TaskBase(JavaPersistenceContext persistenceContext, ThreadHelper threadHelper)
persistenceContext - Object which creates a persistence context and executes a task in that contextpublic void onPostExecute(Boolean success)
onPostExecute in class BackgroundTasksuccess - Boolean TRUE or FALSE or null if task cancelled before result availableBackgroundTask.onPreExecute(),
BackgroundTask.doInBackground()public void onCancelled(Boolean success)
onCancelled in class BackgroundTasksuccess - Boolean TRUE or FALSE or null if task cancelled before result availableTaskRunner.cancel(boolean),
TaskRunner.isCancelled()public TransactionInfo getTransactionInfo()
public boolean doInBackground()
doInBackground in class BackgroundTaskBackgroundTask.doInBackground()public Executable getExecutable()
This documentation is licensed by Andrew Bowley under the GPLv3 License.