类 AnnotationAsyncExecutionInterceptor

    • 构造器详细资料

      • AnnotationAsyncExecutionInterceptor

        public AnnotationAsyncExecutionInterceptor​(Executor defaultExecutor)
        Create a new AnnotationAsyncExecutionInterceptor with the given executor and a simple AsyncUncaughtExceptionHandler.
        参数:
        defaultExecutor - the executor to be used by default if no more specific executor has been qualified at the method level using Async.value(); as of 4.2.6, a local executor for this interceptor will be built otherwise
      • AnnotationAsyncExecutionInterceptor

        public AnnotationAsyncExecutionInterceptor​(Executor defaultExecutor,
                                                   AsyncUncaughtExceptionHandler exceptionHandler)
        Create a new AnnotationAsyncExecutionInterceptor with the given executor.
        参数:
        defaultExecutor - the executor to be used by default if no more specific executor has been qualified at the method level using Async.value(); as of 4.2.6, a local executor for this interceptor will be built otherwise
        exceptionHandler - the AsyncUncaughtExceptionHandler to use to handle exceptions thrown by asynchronous method executions with void return type