AsyncExecutionInterceptor that delegates method execution to
an Executor based on the Async annotation.
Specifically designed to support use of the Async#value() executor
qualifier mechanism.
Supports detecting qualifier metadata via @Async at the method or
declaring class level. See getExecutorQualifier(Method) for details.
org.springframework.scheduling.annotation.Async , org.springframework.scheduling.annotation.AsyncAnnotationAdvisor
| Access | Constructor and Description |
|---|---|
| public | AnnotationAsyncExecutionInterceptor(Executor
the executor to be used by default if no more specific
executor has been qualified at the method level using defaultExecutor)Async#value();
a local executor for this interceptor will be built otherwiseCreate a new |
| public | AnnotationAsyncExecutionInterceptor(Executor
the executor to be used by default if no more specific
executor has been qualified at the method level using defaultExecutor, AsyncUncaughtExceptionHandler Async#value();
a local executor for this interceptor will be built otherwisethe exceptionHandler)AsyncUncaughtExceptionHandler to use to
handle exceptions thrown by asynchronous method executions with void
return typeCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the qualifier if specified, otherwise an empty string indicating that the default executor should be usedthe method to inspect for executor qualifier metadata method)Overrides org. Return the qualifier or bean name of the executor to be used when executing the
given method, specified via |
| AnnotationAsyncExecutionInterceptor | back to summary |
|---|---|
| public AnnotationAsyncExecutionInterceptor(Executor defaultExecutor) Create a new
| |
| AnnotationAsyncExecutionInterceptor | back to summary |
|---|---|
| public AnnotationAsyncExecutionInterceptor(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler) Create a new
| |
| getExecutorQualifier | back to summary |
|---|---|
| protected String getExecutorQualifier(Method method) Overrides org. Return the qualifier or bean name of the executor to be used when executing the
given method, specified via
| |