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

<init>

AsyncExecutionAspectSupport(@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, 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

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

Create a new AsyncExecutionAspectSupport with the given exception handler.

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

exceptionHandler - the AsyncUncaughtExceptionHandler to use