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

<init>

AnnotationAsyncExecutionInterceptor(@Nullable defaultExecutor: Executor)

Create a new AnnotationAsyncExecutionInterceptor with the given executor and a simple AsyncUncaughtExceptionHandler.

Parameters

defaultExecutor - the executor to be used by default if no more specific executor has been qualified at the method level using Async#value(); as of 4.2.6, a local executor for this interceptor will be built otherwise

AnnotationAsyncExecutionInterceptor(@Nullable defaultExecutor: Executor, exceptionHandler: AsyncUncaughtExceptionHandler)

Create a new AnnotationAsyncExecutionInterceptor with the given executor.

Parameters

defaultExecutor - the executor to be used by default if no more specific executor has been qualified at the method level using Async#value(); as of 4.2.6, a local executor for this interceptor will be built otherwise

exceptionHandler - the AsyncUncaughtExceptionHandler to use to handle exceptions thrown by asynchronous method executions with void return type