接口 CallableProcessingInterceptor

  • 所有已知实现类:
    CallableProcessingInterceptorAdapter, TimeoutCallableProcessingInterceptor

    public interface CallableProcessingInterceptor
    Intercepts concurrent request handling, where the concurrent result is obtained by executing a Callable on behalf of the application with an AsyncTaskExecutor.

    A CallableProcessingInterceptor is invoked before and after the invocation of the Callable task in the asynchronous thread, as well as on timeout/error from a container thread, or after completing for any reason including a timeout or network error.

    As a general rule exceptions raised by interceptor methods will cause async processing to resume by dispatching back to the container and using the Exception instance as the concurrent result. Such exceptions will then be processed through the HandlerExceptionResolver mechanism.

    The handleTimeout method can select a value to be used to resume processing.

    从以下版本开始:
    3.2
    作者:
    Rossen Stoyanchev, Rob Winch
    • 字段概要

      字段 
      修饰符和类型字段说明
      static ObjectRESPONSE_HANDLED
      Constant indicating that the response has been handled by this interceptor without a result and that no further interceptors are to be invoked.
      static ObjectRESULT_NONE
      Constant indicating that no result has been determined by this interceptor, giving subsequent interceptors a chance.