Class DelegatingSecurityContextSchedulingTaskExecutor

All Implemented Interfaces:
Executor, org.springframework.core.task.AsyncTaskExecutor, org.springframework.core.task.TaskExecutor, org.springframework.scheduling.SchedulingTaskExecutor

public class DelegatingSecurityContextSchedulingTaskExecutor extends DelegatingSecurityContextAsyncTaskExecutor implements org.springframework.scheduling.SchedulingTaskExecutor
An SchedulingTaskExecutor which wraps each Runnable in a DelegatingSecurityContextRunnable and each Callable in a DelegatingSecurityContextCallable.
Since:
3.2
  • Constructor Details

  • Method Details

    • prefersShortLivedTasks

      public boolean prefersShortLivedTasks()
      Specified by:
      prefersShortLivedTasks in interface org.springframework.scheduling.SchedulingTaskExecutor
    • wrap

      protected final Runnable wrap(Runnable delegate)
    • wrap

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