Package | Description |
---|---|
org.springframework.aop.interceptor |
Provides miscellaneous interceptor implementations.
|
org.springframework.scheduling.annotation |
Java 5 annotation for asynchronous method execution.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleAsyncUncaughtExceptionHandler
A default
AsyncUncaughtExceptionHandler that simply logs the exception. |
Modifier and Type | Method and Description |
---|---|
void |
AsyncExecutionAspectSupport.setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler)
Supply the
AsyncUncaughtExceptionHandler to use to handle exceptions
thrown by invoking asynchronous methods with a void return type. |
Modifier and Type | Method and Description |
---|---|
void |
AsyncExecutionAspectSupport.configure(Supplier<Executor> defaultExecutor,
Supplier<AsyncUncaughtExceptionHandler> exceptionHandler)
Configure this aspect with the given executor and exception handler suppliers,
applying the corresponding default if a supplier is not resolvable.
|
Constructor and Description |
---|
AsyncExecutionAspectSupport(Executor defaultExecutor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AsyncExecutionAspectSupport with the given exception handler. |
AsyncExecutionInterceptor(Executor defaultExecutor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AsyncExecutionInterceptor . |
Modifier and Type | Field and Description |
---|---|
protected Supplier<AsyncUncaughtExceptionHandler> |
AbstractAsyncConfiguration.exceptionHandler |
Modifier and Type | Method and Description |
---|---|
AsyncUncaughtExceptionHandler |
AsyncConfigurerSupport.getAsyncUncaughtExceptionHandler() |
default AsyncUncaughtExceptionHandler |
AsyncConfigurer.getAsyncUncaughtExceptionHandler()
The
AsyncUncaughtExceptionHandler instance to be used
when an exception is thrown during an asynchronous method execution
with void return type. |
Modifier and Type | Method and Description |
---|---|
void |
AsyncAnnotationBeanPostProcessor.setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler)
Set the
AsyncUncaughtExceptionHandler to use to handle uncaught
exceptions thrown by asynchronous method executions. |
Modifier and Type | Method and Description |
---|---|
protected Advice |
AsyncAnnotationAdvisor.buildAdvice(Supplier<Executor> executor,
Supplier<AsyncUncaughtExceptionHandler> exceptionHandler) |
void |
AsyncAnnotationBeanPostProcessor.configure(Supplier<Executor> executor,
Supplier<AsyncUncaughtExceptionHandler> exceptionHandler)
Configure this post-processor with the given executor and exception handler suppliers,
applying the corresponding default if a supplier is not resolvable.
|
Constructor and Description |
---|
AnnotationAsyncExecutionInterceptor(Executor defaultExecutor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AnnotationAsyncExecutionInterceptor with the given executor. |
AsyncAnnotationAdvisor(Executor executor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AsyncAnnotationAdvisor for the given task executor. |
Constructor and Description |
---|
AsyncAnnotationAdvisor(Supplier<Executor> executor,
Supplier<AsyncUncaughtExceptionHandler> exceptionHandler)
Create a new
AsyncAnnotationAdvisor for the given task executor. |