public class ExecutorServiceAdapter extends AbstractExecutorService
TaskExecutor
 and exposes a full java.util.concurrent.ExecutorService for it.
 This is primarily for adapting to client components that communicate via the
 java.util.concurrent.ExecutorService API. It can also be used as
 common ground between a local Spring TaskExecutor backend and a
 JNDI-located ManagedExecutorService in a Java EE 7 environment.
 
NOTE: This ExecutorService adapter does not support the
 lifecycle methods in the java.util.concurrent.ExecutorService API
 ("shutdown()" etc), similar to a server-wide ManagedExecutorService
 in a Java EE 7 environment. The lifecycle is always up to the backend pool,
 with this adapter acting as an access-only proxy for that target pool.
ExecutorService| Constructor and Description | 
|---|
| ExecutorServiceAdapter(TaskExecutor taskExecutor)Create a new ExecutorServiceAdapter, using the given target executor. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | awaitTermination(long timeout,
                TimeUnit unit) | 
| void | execute(Runnable task) | 
| boolean | isShutdown() | 
| boolean | isTerminated() | 
| void | shutdown() | 
| List<Runnable> | shutdownNow() | 
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic ExecutorServiceAdapter(TaskExecutor taskExecutor)
taskExecutor - the target executor to delegate topublic void execute(Runnable task)
public void shutdown()
public boolean awaitTermination(long timeout,
                                TimeUnit unit)
                         throws InterruptedException
InterruptedExceptionpublic boolean isShutdown()
public boolean isTerminated()