接口的使用
infra.aop.interceptor.AsyncUncaughtExceptionHandler
-
infra.aop.interceptor中AsyncUncaughtExceptionHandler的使用
修饰符和类型字段说明private infra.util.function.SingletonSupplier<AsyncUncaughtExceptionHandler>AsyncExecutionAspectSupport.exceptionHandler修饰符和类型方法说明voidAsyncExecutionAspectSupport.setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler) Supply theAsyncUncaughtExceptionHandlerto use to handle exceptions thrown by invoking asynchronous methods with avoidreturn type.限定符构造器说明AsyncExecutionAspectSupport(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler) Create a newAsyncExecutionAspectSupportwith the given exception handler.AsyncExecutionInterceptor(Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler) Create a newAsyncExecutionInterceptor.