接口 AsyncHandlerInterceptor

    • 方法详细资料

      • afterConcurrentHandlingStarted

        default void afterConcurrentHandlingStarted​(HttpServletRequest request,
                                                    HttpServletResponse response,
                                                    Object handler)
                                             throws Exception
        Called instead of postHandle and afterCompletion when the handler is being executed concurrently.

        Implementations may use the provided request and response but should avoid modifying them in ways that would conflict with the concurrent execution of the handler. A typical use of this method would be to clean up thread-local variables.

        参数:
        request - the current request
        response - the current response
        handler - the handler (or HandlerMethod) that started async execution, for type and/or instance examination
        抛出:
        Exception - in case of errors