public class ThreadPoolAsyncTaskExecutor extends Object implements org.springframework.core.task.AsyncTaskExecutor
| Constructor and Description |
|---|
ThreadPoolAsyncTaskExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable task)
Executes the runnable
|
void |
execute(Runnable task,
long startTimeout)
Executes the runnable
|
void |
shutdown()
Shuts down the internal
ExecutorService to ensure that all threads are stopped in order to allow the JVM
to terminate cleanly in a timely fashion. |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
public void execute(Runnable task, long startTimeout)
execute in interface org.springframework.core.task.AsyncTaskExecutortask - The runnable taskstartTimeout - The start timeout (ignored)public Future<?> submit(Runnable task)
submit in interface org.springframework.core.task.AsyncTaskExecutorpublic <T> Future<T> submit(Callable<T> task)
submit in interface org.springframework.core.task.AsyncTaskExecutorpublic void execute(Runnable task)
public void shutdown()
ExecutorService to ensure that all threads are stopped in order to allow the JVM
to terminate cleanly in a timely fashion.Copyright © 2018 Atlassian. All rights reserved.