接口的使用
org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler
使用AsyncUncaughtExceptionHandler的程序包 程序包 说明 org.springframework.aop.interceptor Provides miscellaneous interceptor implementations.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.aop.interceptor中AsyncUncaughtExceptionHandler的使用
实现AsyncUncaughtExceptionHandler的org.springframework.aop.interceptor中的类 修饰符和类型 类 说明 class
SimpleAsyncUncaughtExceptionHandler
A defaultAsyncUncaughtExceptionHandler
that simply logs the exception.参数类型为AsyncUncaughtExceptionHandler的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 void
AsyncExecutionAspectSupport. setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler)
Supply theAsyncUncaughtExceptionHandler
to use to handle exceptions thrown by invoking asynchronous methods with avoid
return type.参数类型为AsyncUncaughtExceptionHandler的org.springframework.aop.interceptor中的构造器 构造器 说明 AsyncExecutionAspectSupport(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler)
Create a newAsyncExecutionAspectSupport
with the given exception handler.AsyncExecutionInterceptor(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler)
Create a newAsyncExecutionInterceptor
.org.springframework.scheduling.annotation中AsyncUncaughtExceptionHandler的使用
类型参数类型为AsyncUncaughtExceptionHandler的org.springframework.scheduling.annotation中的字段 修饰符和类型 字段 说明 protected Supplier<AsyncUncaughtExceptionHandler>
AbstractAsyncConfiguration. exceptionHandler
返回AsyncUncaughtExceptionHandler的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 default AsyncUncaughtExceptionHandler
AsyncConfigurer. getAsyncUncaughtExceptionHandler()
TheAsyncUncaughtExceptionHandler
instance to be used when an exception is thrown during an asynchronous method execution withvoid
return type.AsyncUncaughtExceptionHandler
AsyncConfigurerSupport. getAsyncUncaughtExceptionHandler()
参数类型为AsyncUncaughtExceptionHandler的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 void
AsyncAnnotationBeanPostProcessor. setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler)
Set theAsyncUncaughtExceptionHandler
to use to handle uncaught exceptions thrown by asynchronous method executions.参数类型为AsyncUncaughtExceptionHandler的org.springframework.scheduling.annotation中的构造器 构造器 说明 AnnotationAsyncExecutionInterceptor(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler)
Create a newAnnotationAsyncExecutionInterceptor
with the given executor.AsyncAnnotationAdvisor(Executor executor, AsyncUncaughtExceptionHandler exceptionHandler)
Create a newAsyncAnnotationAdvisor
for the given task executor.