public class FlowAsyncTaskAction extends AbstractFlowTaskAction
FlowAction that calls the given Runnable whenever the action is triggered.
The Runnable will be called in a background thread.AbstractFlowTaskAction.TaskFactory| ?????? |
|---|
FlowAsyncTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass)
Defines a new
FlowAsyncTaskAction instance that task is defined by a class that extends
Runnable. |
FlowAsyncTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass,
java.util.concurrent.Executor executorService)
Defines a new
FlowAsyncTaskAction instance that task is defined by a class that extends
Runnable. |
FlowAsyncTaskAction(java.lang.Runnable runnable)
Defines a new
FlowAsyncTaskAction instance that task is defined by a Runnable instance. |
FlowAsyncTaskAction(java.lang.Runnable runnable,
java.util.concurrent.Executor executorService)
Defines a new
FlowAsyncTaskAction instance that task is defined by a Runnable instance. |
| ?????? | ????? |
|---|---|
protected void |
execute(java.lang.Runnable r)
Executes the defined
Runnable |
handlepublic FlowAsyncTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass)
FlowAsyncTaskAction instance that task is defined by a class that extends
Runnable. Whenever a action is triggered a new instance of the given class will be created. Therefore the
class needs a default constructor. All injection that is working in a controller class will work in the given
class that defines the task, too. The task of the action will run on a background thread. Therefore the default
instance of the ObservableExecutor will be used.runnableClass - the class that defines the taskpublic FlowAsyncTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass,
java.util.concurrent.Executor executorService)
FlowAsyncTaskAction instance that task is defined by a class that extends
Runnable. Whenever a action is triggered a new instance of the given class will be created. Therefore the
class needs a default constructor. All injection that is working in a controller class will work in the given
class that defines the task, too. The task of the action will run on a background thread. Therefore the given
Executor will be used.runnableClass - the class that defines the taskexecutorService - the executor that will execute the taskpublic FlowAsyncTaskAction(java.lang.Runnable runnable)
FlowAsyncTaskAction instance that task is defined by a Runnable instance. The task
of the action will run on a background thread. Therefore the default instance of the ObservableExecutor
will be used.runnable - defines the task and will be called whenever the action is triggered.public FlowAsyncTaskAction(java.lang.Runnable runnable,
java.util.concurrent.Executor executorService)
FlowAsyncTaskAction instance that task is defined by a Runnable instance. The task
of the action will run on a background thread. Therefore the given Executor will be used.runnable - defines the task and will be called whenever the action is triggered.executorService - the executor that will execute the taskprotected void execute(java.lang.Runnable r)
throws java.lang.Exception
AbstractFlowTaskActionRunnableexecute ??? AbstractFlowTaskActionr - the runnablejava.lang.Exception - if the runnable can't be executed