References Deprecated
AsyncListenableTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
org.springframework.core.task.TaskExecutor interface
and listens to Spring lifecycle callbacks.
Can be shared between a Quartz Scheduler (specified as "taskExecutor") and other TaskExecutor users, or even used completely independent of a Quartz Scheduler (as plain TaskExecutor backend).
org.quartz.simpl.SimpleThreadPool , org.springframework.core.task.TaskExecutor , SchedulerFactoryBean#setTaskExecutor
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| public void | destroy()
Implements org. Invoked by the containing |
| public void | execute(Runnable
the task)Runnable to execute (never null)Implements org. Execute the given |
| public void | setWaitForJobsToCompleteOnShutdown(boolean waitForJobsToCompleteOnShutdown)
Set whether to wait for running jobs to complete on shutdown. |
| public Future | submit(Runnable
the task)Runnable to execute (never null)Overrides default org. Submit a Runnable task for execution, receiving a Future representing that task. |
| public <T> Future | submit(Callable<T>
the task)Callable to execute (never null)Overrides default org. Submit a Callable task for execution, receiving a Future representing that task. |
| public ListenableFuture | submitListenable(Runnable
the task)Runnable to execute (never null)Implements org.
References Deprecated
ListenableFuture is deprecated or references (maybe indirectly) at least one deprecated element.
Submit a |
| public <T> ListenableFuture | submitListenable(Callable<T>
the task)Callable to execute (never null)Implements org.
References Deprecated
ListenableFuture is deprecated or references (maybe indirectly) at least one deprecated element.
Submit a |
| waitForJobsToCompleteOnShutdown | back to summary |
|---|---|
| private boolean waitForJobsToCompleteOnShutdown | |
| SimpleThreadPoolTaskExecutor | back to summary |
|---|---|
| public SimpleThreadPoolTaskExecutor() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() throws org.quartz.SchedulerConfigException Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org. Doc from org. Invoked by the containing
| |
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Implements org. Doc from org. Execute the given The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution. | |
| setWaitForJobsToCompleteOnShutdown | back to summary |
|---|---|
| public void setWaitForJobsToCompleteOnShutdown(boolean waitForJobsToCompleteOnShutdown) Set whether to wait for running jobs to complete on shutdown. Default is "false". | |
| submit | back to summary |
|---|---|
| public Future Overrides default org. Doc from org. Submit a Runnable task for execution, receiving a Future representing that task.
The Future will return a As of 6.1, this method comes with a default implementation that delegates
to | |
| submit | back to summary |
|---|---|
| public <T> Future Overrides default org. Doc from org. Submit a Callable task for execution, receiving a Future representing that task. The Future will return the Callable's result upon completion. As of 6.1, this method comes with a default implementation that delegates
to | |
| submitListenable | back to summary |
|---|---|
| public ListenableFuture Implements org. Doc from org. References Deprecated
See corresponding docs for further information. Submit a
| |
| submitListenable | back to summary |
|---|---|
| public <T> ListenableFuture Implements org. Doc from org. References Deprecated
See corresponding docs for further information. Submit a
| |