接口的使用
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中的类 修饰符和类型 类 说明 classSimpleAsyncUncaughtExceptionHandlerA defaultAsyncUncaughtExceptionHandlerthat simply logs the exception.参数类型为AsyncUncaughtExceptionHandler的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 voidAsyncExecutionAspectSupport. setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler)Supply theAsyncUncaughtExceptionHandlerto use to handle exceptions thrown by invoking asynchronous methods with avoidreturn type.参数类型为AsyncUncaughtExceptionHandler的org.springframework.aop.interceptor中的构造器 构造器 说明 AsyncExecutionAspectSupport(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler)Create a newAsyncExecutionAspectSupportwith 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 AsyncUncaughtExceptionHandlerAsyncConfigurer. getAsyncUncaughtExceptionHandler()TheAsyncUncaughtExceptionHandlerinstance to be used when an exception is thrown during an asynchronous method execution withvoidreturn type.AsyncUncaughtExceptionHandlerAsyncConfigurerSupport. getAsyncUncaughtExceptionHandler()参数类型为AsyncUncaughtExceptionHandler的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 voidAsyncAnnotationBeanPostProcessor. setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler)Set theAsyncUncaughtExceptionHandlerto use to handle uncaught exceptions thrown by asynchronous method executions.参数类型为AsyncUncaughtExceptionHandler的org.springframework.scheduling.annotation中的构造器 构造器 说明 AnnotationAsyncExecutionInterceptor(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler)Create a newAnnotationAsyncExecutionInterceptorwith the given executor.AsyncAnnotationAdvisor(Executor executor, AsyncUncaughtExceptionHandler exceptionHandler)Create a newAsyncAnnotationAdvisorfor the given task executor.