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(java.util.function.Supplier<java.util.concurrent.Executor> defaultExecutor,
java.util.function.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(java.util.concurrent.Executor defaultExecutor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AsyncExecutionAspectSupport with the given exception handler. |
AsyncExecutionInterceptor(java.util.concurrent.Executor defaultExecutor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AsyncExecutionInterceptor . |
Modifier and Type | Field and Description |
---|---|
protected java.util.function.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(java.util.function.Supplier<java.util.concurrent.Executor> executor,
java.util.function.Supplier<AsyncUncaughtExceptionHandler> exceptionHandler) |
void |
AsyncAnnotationBeanPostProcessor.configure(java.util.function.Supplier<java.util.concurrent.Executor> executor,
java.util.function.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(java.util.concurrent.Executor defaultExecutor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AnnotationAsyncExecutionInterceptor with the given executor. |
AsyncAnnotationAdvisor(java.util.concurrent.Executor executor,
AsyncUncaughtExceptionHandler exceptionHandler)
Create a new
AsyncAnnotationAdvisor for the given task executor. |
Constructor and Description |
---|
AsyncAnnotationAdvisor(java.util.function.Supplier<java.util.concurrent.Executor> executor,
java.util.function.Supplier<AsyncUncaughtExceptionHandler> exceptionHandler)
Create a new
AsyncAnnotationAdvisor for the given task executor. |