Class DelegatingSecurityContextAsyncTaskExecutor

All Implemented Interfaces:
Executor, org.springframework.core.task.AsyncTaskExecutor, org.springframework.core.task.TaskExecutor
Direct Known Subclasses:
DelegatingSecurityContextSchedulingTaskExecutor

public class DelegatingSecurityContextAsyncTaskExecutor extends DelegatingSecurityContextTaskExecutor implements org.springframework.core.task.AsyncTaskExecutor
An AsyncTaskExecutor which wraps each Runnable in a DelegatingSecurityContextRunnable and each Callable in a DelegatingSecurityContextCallable.
Since:
3.2
  • Constructor Details

  • Method Details

    • execute

      public final void execute(Runnable task, long startTimeout)
      Specified by:
      execute in interface org.springframework.core.task.AsyncTaskExecutor
    • submit

      public final Future<?> submit(Runnable task)
      Specified by:
      submit in interface org.springframework.core.task.AsyncTaskExecutor
    • submit

      public final <T> Future<T> submit(Callable<T> task)
      Specified by:
      submit in interface org.springframework.core.task.AsyncTaskExecutor
    • wrap

      protected final Runnable wrap(Runnable delegate)
    • wrap

      protected final <T> Callable<T> wrap(Callable<T> delegate)