spring-framework / org.springframework.scheduling.annotation / AsyncAnnotationAdvisor / <init>

<init>

AsyncAnnotationAdvisor()

Create a new AsyncAnnotationAdvisor for bean-style configuration.

AsyncAnnotationAdvisor(@Nullable executor: Executor, @Nullable exceptionHandler: AsyncUncaughtExceptionHandler)

Create a new AsyncAnnotationAdvisor for the given task executor.

Parameters

executor - the task executor to use for asynchronous methods (can be null to trigger default executor resolution)

exceptionHandler - the AsyncUncaughtExceptionHandler to use to handle unexpected exception thrown by asynchronous method executions

See Also
AnnotationAsyncExecutionInterceptor#getDefaultExecutor(BeanFactory)