| java.lang.Object org.springframework.jca.work.SimpleTaskWorkManager
Method Summary | |
public void | doWork(Work work) | public void | doWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) | protected long | executeWork(TaskExecutor taskExecutor, Work work, long startTimeout, boolean blockUntilStarted, ExecutionContext executionContext, WorkListener workListener) Execute the given Work on the specified TaskExecutor. | public void | scheduleWork(Work work) | public void | scheduleWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) | public void | setAsyncTaskExecutor(TaskExecutor asyncTaskExecutor) Specify the TaskExecutor to use for asynchronous work execution
(i.e. | public void | setSyncTaskExecutor(TaskExecutor syncTaskExecutor) Specify the TaskExecutor to use for synchronous work execution
(i.e. | public long | startWork(Work work) | public long | startWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) |
doWork | public void doWork(Work work) throws WorkException(Code) | | |
doWork | public void doWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException(Code) | | |
executeWork | protected long executeWork(TaskExecutor taskExecutor, Work work, long startTimeout, boolean blockUntilStarted, ExecutionContext executionContext, WorkListener workListener) throws WorkException(Code) | | Execute the given Work on the specified TaskExecutor.
Parameters: taskExecutor - the TaskExecutor to use Parameters: work - the Work to execute Parameters: startTimeout - the time duration within which the Work is supposed to start Parameters: blockUntilStarted - whether to block until the Work has started Parameters: executionContext - the JCA ExecutionContext for the given Work Parameters: workListener - the WorkListener to clal for the given Work the time elapsed from Work acceptance until start of execution(or -1 if not applicable or not known) throws: WorkException - if the TaskExecutor did not accept the Work |
scheduleWork | public void scheduleWork(Work work) throws WorkException(Code) | | |
scheduleWork | public void scheduleWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException(Code) | | |
startWork | public long startWork(Work work) throws WorkException(Code) | | |
startWork | public long startWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException(Code) | | |
|
|