abstract class AsyncExecutionAspectSupport : BeanFactoryAware
Base class for asynchronous method execution aspects, such as org.springframework.scheduling.annotation.AnnotationAsyncExecutionInterceptor or org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspect.
Provides support for executor qualification on a method-by-method basis. AsyncExecutionAspectSupport objects must be constructed with a default Executor, but each individual method may further qualify a specific Executor bean to be used when executing it, e.g. through an annotation attribute.
Author
Chris Beams
Author
Juergen Hoeller
Author
Stephane Nicoll
Since
3.1.2
AsyncExecutionAspectSupport(defaultExecutor: Executor)
Create a new instance with a default AsyncUncaughtExceptionHandler. AsyncExecutionAspectSupport(defaultExecutor: Executor, exceptionHandler: AsyncUncaughtExceptionHandler)
Create a new AsyncExecutionAspectSupport with the given exception handler. |
static val DEFAULT_TASK_EXECUTOR_BEAN_NAME: String
The default name of the TaskExecutor bean to pick up: "taskExecutor". Note that the initial lookup happens by type; this is just the fallback in case of multiple executor beans found in the context. |
open fun setBeanFactory(beanFactory: BeanFactory): Unit
Set the BeanFactory to be used when looking up executors by qualifier or when relying on the default executor lookup algorithm. |
|
open fun setExceptionHandler(exceptionHandler: AsyncUncaughtExceptionHandler): Unit
Supply the AsyncUncaughtExceptionHandler to use to handle exceptions thrown by invoking asynchronous methods with a |
|
open fun setExecutor(defaultExecutor: Executor): Unit
Supply the executor to be used when executing async methods. |
open class AsyncExecutionInterceptor : AsyncExecutionAspectSupport, MethodInterceptor, Ordered
AOP Alliance In terms of target method signatures, any parameter types are supported. However, the return type is constrained to either When the return type is As of Spring 3.1.2 the |