public class ThreadPoolAsyncTaskExecutor
extends java.lang.Object
implements org.springframework.core.task.AsyncTaskExecutor
| Constructor and Description |
|---|
ThreadPoolAsyncTaskExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable task)
Executes the runnable
|
void |
execute(java.lang.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> java.util.concurrent.Future<T> |
submit(java.util.concurrent.Callable<T> task) |
java.util.concurrent.Future<?> |
submit(java.lang.Runnable task) |
public void execute(java.lang.Runnable task,
long startTimeout)
execute in interface org.springframework.core.task.AsyncTaskExecutortask - The runnable taskstartTimeout - The start timeout (ignored)public java.util.concurrent.Future<?> submit(java.lang.Runnable task)
submit in interface org.springframework.core.task.AsyncTaskExecutorpublic <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
submit in interface org.springframework.core.task.AsyncTaskExecutorpublic void execute(java.lang.Runnable task)
execute in interface java.util.concurrent.Executorexecute in interface org.springframework.core.task.TaskExecutortask - The runnable taskpublic void shutdown()
ExecutorService to ensure that all threads are stopped in order to allow the JVM
to terminate cleanly in a timely fashion.Copyright © 2013 Atlassian. All Rights Reserved.