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(@Nonnull Runnable task, long startTimeout)
execute in interface org.springframework.core.task.AsyncTaskExecutortask - The runnable taskstartTimeout - The start timeout (ignored)@Nonnull public Future<?> submit(@Nonnull Runnable task)
submit in interface org.springframework.core.task.AsyncTaskExecutor@Nonnull public <T> Future<T> submit(@Nonnull Callable<T> task)
submit in interface org.springframework.core.task.AsyncTaskExecutorpublic void shutdown()
ExecutorService to ensure that all threads are stopped in order to allow the JVM
to terminate cleanly in a timely fashion.Copyright © 2019 Atlassian. All rights reserved.