Package org.springframework.web.context.request.async

Examples of org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter


    @Override
    public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
      configurer.setDefaultTimeout(2500).setTaskExecutor(new ConcurrentTaskExecutor())
        .registerCallableInterceptors(new CallableProcessingInterceptorAdapter() { })
        .registerDeferredResultInterceptors(new DeferredResultProcessingInterceptorAdapter() {});
    }
View Full Code Here


      @Override
      public <T> void postProcess(NativeWebRequest r, Callable<T> task, Object value) throws Exception {
        getMvcResult(request).setAsyncResult(value);
      }
    });
    asyncManager.registerDeferredResultInterceptor(KEY, new DeferredResultProcessingInterceptorAdapter() {
      @Override
      public <T> void postProcess(NativeWebRequest r, DeferredResult<T> result, Object value) throws Exception {
        getMvcResult(request).setAsyncResult(value);
      }
    });
View Full Code Here

TOP

Related Classes of org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.