public class DelegatingSecurityContextAsyncTaskExecutor extends DelegatingSecurityContextTaskExecutor implements AsyncTaskExecutor
AsyncTaskExecutor which wraps each Runnable in a
 DelegatingSecurityContextRunnable and each Callable in a
 DelegatingSecurityContextCallable.TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE| Constructor and Description | 
|---|
DelegatingSecurityContextAsyncTaskExecutor(AsyncTaskExecutor delegateAsyncTaskExecutor)
Creates a new  
DelegatingSecurityContextAsyncTaskExecutor that uses the
 current SecurityContext. | 
DelegatingSecurityContextAsyncTaskExecutor(AsyncTaskExecutor delegateAsyncTaskExecutor,
                                          SecurityContext securityContext)
Creates a new  
DelegatingSecurityContextAsyncTaskExecutor that uses the
 specified SecurityContext. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
execute(Runnable task,
       long startTimeout)  | 
<T> Future<T> | 
submit(Callable<T> task)  | 
Future<?> | 
submit(Runnable task)  | 
protected <T> Callable<T> | 
wrap(Callable<T> delegate)  | 
protected Runnable | 
wrap(Runnable delegate)  | 
execute, getDelegateExecutorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic DelegatingSecurityContextAsyncTaskExecutor(AsyncTaskExecutor delegateAsyncTaskExecutor, SecurityContext securityContext)
DelegatingSecurityContextAsyncTaskExecutor that uses the
 specified SecurityContext.delegateAsyncTaskExecutor - the AsyncTaskExecutor to delegate to.
 Cannot be null.securityContext - the SecurityContext to use for each
 DelegatingSecurityContextRunnable and
 DelegatingSecurityContextCallablepublic DelegatingSecurityContextAsyncTaskExecutor(AsyncTaskExecutor delegateAsyncTaskExecutor)
DelegatingSecurityContextAsyncTaskExecutor that uses the
 current SecurityContext.delegateAsyncTaskExecutor - the AsyncTaskExecutor to delegate to.
 Cannot be null.public final void execute(Runnable task, long startTimeout)
execute in interface AsyncTaskExecutorpublic final Future<?> submit(Runnable task)
submit in interface AsyncTaskExecutorpublic final <T> Future<T> submit(Callable<T> task)
submit in interface AsyncTaskExecutor