BVB Source Codes

spring-mvc-showcase Show TimeoutCallableProcessingInterceptor.java Source code

Return Download spring-mvc-showcase: download TimeoutCallableProcessingInterceptor.java Source code - Download spring-mvc-showcase Source code - Type:.java
  1. package org.springframework.samples.mvc.async;
  2.  
  3. import java.util.concurrent.Callable;
  4.  
  5. import org.springframework.web.context.request.NativeWebRequest;
  6. import org.springframework.web.context.request.async.CallableProcessingInterceptorAdapter;
  7.  
  8. public class TimeoutCallableProcessingInterceptor extends CallableProcessingInterceptorAdapter {
  9.  
  10.         @Override
  11.         public <T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception {
  12.                 throw new IllegalStateException("[" + task.getClass().getName() + "] timed out");
  13.         }
  14.  
  15. }
  16.  
downloadTimeoutCallableProcessingInterceptor.java Source code - Download spring-mvc-showcase Source code
Related Source Codes/Software:
tushare - TuShare is a utility for crawling historical data ... 2017-01-12
raml-spec - RAML Specification http://raml.... 2017-01-12
android-stackblur - Android StackBlur is a library that can perform a ... 2017-01-12
sound-redux - A Soundcloud client built with React / Redux ... 2017-01-12
httpstat - curl statistics made simple 2017-01-12
discover-flask - Full Stack Web Development with Flask. ... 2017-01-12
micro - Async HTTP microservices made easy ... 2017-01-12
gobot - Golang framework for robotics, drones, and the Int... 2017-01-11
mas - 2017-01-13
Zappa - Serverless Python Web Services ... 2017-01-12
mongo-express - Web-based MongoDB admin interface, written with No... 2017-05-17
XCL-Charts - Android charting libraries (XCL-Charts is a free c... 2017-05-17
scrollMonitor - A simple and fast API to monitor elements as you s... 2017-05-16
XCDYouTubeKit - YouTube video player for iOS, tvOS and macOS 2017-05-16
rails-erd - Generate Entity-Relationship Diagrams for Rails ap... 2017-05-16
np - A better `npm publish` 2017-05-16
android - Smartisan open source code for full build.(repo ma... 2017-05-16
word_cloud - A little word cloud generator in Pytho 2017-05-16
mobileplayer-ios - 2017-05-16
Destroy-Windows-10-Spying - Destroy Windows Spying tool ... 2017-05-15

 Back to top