Interface AsyncHandlerInterceptor

    • Method Detail

      • afterConcurrentHandlingStarted

        default void afterConcurrentHandlingStarted(HttpServletRequest request,
                                                    HttpServletResponse response,
                                                    java.lang.Object handler)
                                             throws java.lang.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
        java.lang.Exception - in case of errors