Uses a {@link org.springframework.core.task.SyncTaskExecutor} for {@link #doWork}calls and a {@link org.springframework.core.task.SimpleAsyncTaskExecutor}for {@link #startWork} and {@link #scheduleWork} calls, by default.These default task executors can be overridden through configuration.
NOTE: This WorkManager does not provide thread pooling by default! Specify a {@link org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor}(or any other thread-pooling TaskExecutor) as "asyncTaskExecutor" in order to achieve actual thread pooling.
This WorkManager automatically detects a specified {@link org.springframework.core.task.AsyncTaskExecutor} implementationand uses its extended timeout functionality where appropriate. JCA WorkListeners are fully supported in any case. @author Juergen Hoeller @since 2.0.3 @see #setSyncTaskExecutor @see #setAsyncTaskExecutor
|
|