Interface AsyncHandlerInterceptor

    • Method Detail

      • afterConcurrentHandlingStarted

        void afterConcurrentHandlingStarted​(HttpServletRequest request,
                                            HttpServletResponse response,
                                            Object handler)
                                     throws Exception
        Called instead of postHandle and afterCompletion, when the a 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.

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