接口的使用
cn.taketoday.web.context.async.CallableProcessingInterceptor
程序包
说明
Support for asynchronous request processing.
-
cn.taketoday.web.config中CallableProcessingInterceptor的使用
修饰符和类型字段说明private final List<CallableProcessingInterceptor>AsyncSupportConfigurer.callableInterceptors返回变量类型为CallableProcessingInterceptor的类型的cn.taketoday.web.config中的方法修饰符和类型方法说明protected List<CallableProcessingInterceptor>AsyncSupportConfigurer.getCallableInterceptors()修饰符和类型方法说明AsyncSupportConfigurer.registerCallableInterceptors(CallableProcessingInterceptor... interceptors) Configure lifecycle interceptors with callbacks around concurrent request execution that starts when a controller returns aCallable. -
cn.taketoday.web.context.async中CallableProcessingInterceptor的使用
修饰符和类型类说明classSends a 503 (SERVICE_UNAVAILABLE) in case of a timeout if the response is not already committed. this is done indirectly by setting the result to anAsyncRequestTimeoutExceptionwhich is then handled by MVC's default exception handling as a 503 error.修饰符和类型字段说明private final Map<Object,CallableProcessingInterceptor> WebAsyncManager.callableInterceptorsprivate final List<CallableProcessingInterceptor>CallableInterceptorChain.interceptors修饰符和类型方法说明WebAsyncManager.getCallableInterceptor(Object key) Get theCallableProcessingInterceptorregistered under the given key.(专用程序包) CallableProcessingInterceptorWebAsyncTask.getInterceptor()修饰符和类型方法说明voidWebAsyncManager.registerCallableInterceptor(Object key, CallableProcessingInterceptor interceptor) Register aCallableProcessingInterceptorunder the given key.voidWebAsyncManager.registerCallableInterceptors(CallableProcessingInterceptor... interceptors) Register aCallableProcessingInterceptorwithout a key.修饰符和类型方法说明voidWebAsyncManagerFactory.setCallableInterceptors(List<CallableProcessingInterceptor> interceptors) ConfigureCallableProcessingInterceptor's to register on async requests.类型变量类型为CallableProcessingInterceptor的cn.taketoday.web.context.async中的构造器参数