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
zen - IOS, Swift, Objective - C 2017-04-25
neural-storyteller - A recurrent neural network for generating little s... 2017-04-25
CTAssetsPickerController - iOS control that allows picking multiple photos an... 2017-04-25
retire - A rich Ruby API and DSL for the Elasticsearch sear... 2017-04-25
jxcore - Evented IO for ChakraCore, SpiderMonkey & V8 J... 2017-04-25
node.io - 2017-04-25
PHPVerbalExpressions - PHP Regular expressions made easy 2017-04-25
Laravel-Administrator - An administrative interface package for Laravel ... 2017-04-25
elasticsearch-dump - Import and export tools for elasticsearch 2017-04-25
flyway - Flyway by Boxfuse Database Migrations Made Easy. ... 2017-04-25

 Back to top