接口的使用
org.springframework.web.context.request.async.CallableProcessingInterceptor
使用CallableProcessingInterceptor的程序包 程序包 说明 org.springframework.web.context.request.async Support for asynchronous request processing.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.context.request.async中CallableProcessingInterceptor的使用
实现CallableProcessingInterceptor的org.springframework.web.context.request.async中的类 修饰符和类型 类 说明 class
CallableProcessingInterceptorAdapter
已过时。as of 5.0 where CallableProcessingInterceptor has default methodsclass
TimeoutCallableProcessingInterceptor
Sends a 503 (SERVICE_UNAVAILABLE) in case of a timeout if the response is not already committed.返回CallableProcessingInterceptor的org.springframework.web.context.request.async中的方法 修饰符和类型 方法 说明 CallableProcessingInterceptor
WebAsyncManager. getCallableInterceptor(Object key)
Get theCallableProcessingInterceptor
registered under the given key.参数类型为CallableProcessingInterceptor的org.springframework.web.context.request.async中的方法 修饰符和类型 方法 说明 void
WebAsyncManager. registerCallableInterceptor(Object key, CallableProcessingInterceptor interceptor)
Register aCallableProcessingInterceptor
under the given key.void
WebAsyncManager. registerCallableInterceptors(CallableProcessingInterceptor... interceptors)
Register aCallableProcessingInterceptor
without a key.org.springframework.web.servlet.config.annotation中CallableProcessingInterceptor的使用
返回变量类型为CallableProcessingInterceptor的类型的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected List<CallableProcessingInterceptor>
AsyncSupportConfigurer. getCallableInterceptors()
参数类型为CallableProcessingInterceptor的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 AsyncSupportConfigurer
AsyncSupportConfigurer. registerCallableInterceptors(CallableProcessingInterceptor... interceptors)
Configure lifecycle interceptors with callbacks around concurrent request execution that starts when a controller returns aCallable
.org.springframework.web.servlet.mvc.method.annotation中CallableProcessingInterceptor的使用
类型变量类型为CallableProcessingInterceptor的org.springframework.web.servlet.mvc.method.annotation中的方法参数 修饰符和类型 方法 说明 void
RequestMappingHandlerAdapter. setCallableInterceptors(List<CallableProcessingInterceptor> interceptors)
ConfigureCallableProcessingInterceptor
's to register on async requests.