Java Code Examples for org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter

Following code examples demonstrate how to use org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapterfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapterand various code implementation of this class.

    public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
                new DeferredResultProcessingInterceptorAdapter() {
                    public <T> boolean handleTimeout(NativeWebRequest req, DeferredResult<T> result) {
                        return result.setErrorResult(new AsyncTimeoutException());

Abstract adapter class for the DeferredResultProcessingInterceptor interface for simplified implemen

tation of individual methods. @author Rossen Stoyanchev @author Rob Winch @since 3.2 @deprecated as of 5.0 where DeferredResultProcessingInterceptor has default methods

Read More