public interface HasAsyncTaskRef extends Runnable
AsyncTask
will
inject the AsyncTask instance into the runnable if it implements this
interface.ClientTaskManager
Modifier and Type | Method and Description |
---|---|
AsyncTask |
getAsyncTask()
Returns the AsyncTask instance most recently set in
setAsyncTask(AsyncTask) , or null if setAsyncTask() has not
been called yet. |
void |
setAsyncTask(AsyncTask task)
Called by Errai scheduler services when they receive this Runnable and
before its run() method is called.
|
void setAsyncTask(AsyncTask task)
task
- The companion AsyncTask instance that has been created for this
runnableAsyncTask getAsyncTask()
setAsyncTask(AsyncTask)
, or null if setAsyncTask()
has not
been called yet.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.