Class DelegatingSecurityContextSchedulingTaskExecutor

  • All Implemented Interfaces:
    java.util.concurrent.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
    • Method Detail

      • prefersShortLivedTasks

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

        protected final java.lang.Runnable wrap​(java.lang.Runnable delegate)
      • wrap

        protected final <T> java.util.concurrent.Callable<T> wrap​(java.util.concurrent.Callable<T> delegate)