spring-framework / org.springframework.aop.interceptor / AsyncExecutionInterceptor / <init>

<init>

AsyncExecutionInterceptor(@Nullable defaultExecutor: Executor)

Create a new instance with a default AsyncUncaughtExceptionHandler.

Parameters

defaultExecutor - the Executor (typically a Spring AsyncTaskExecutor or java.util.concurrent.ExecutorService) to delegate to; as of 4.2.6, a local executor for this interceptor will be built otherwise

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

Create a new AsyncExecutionInterceptor.

Parameters

defaultExecutor - the Executor (typically a Spring AsyncTaskExecutor or java.util.concurrent.ExecutorService) to delegate to; as of 4.2.6, a local executor for this interceptor will be built otherwise

exceptionHandler - the AsyncUncaughtExceptionHandler to use