spring-framework / org.springframework.aop.interceptor / AsyncExecutionAspectSupport / setExecutor

setExecutor

open fun setExecutor(defaultExecutor: Executor): Unit

Supply the executor to be used when executing async methods.

Parameters

defaultExecutor - the Executor (typically a Spring AsyncTaskExecutor or java.util.concurrent.ExecutorService) to delegate to, unless a more specific executor has been requested via a qualifier on the async method, in which case the executor will be looked up at invocation time against the enclosing bean factory

See Also
#getExecutorQualifier(Method)#setBeanFactory(BeanFactory)#getDefaultExecutor(BeanFactory)