类 DeferredResultProcessingInterceptorAdapter
- java.lang.Object
- org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter
- 所有已实现的接口:
DeferredResultProcessingInterceptor
public abstract class DeferredResultProcessingInterceptorAdapter extends Object implements DeferredResultProcessingInterceptor
Abstract adapter class for theDeferredResultProcessingInterceptorinterface for simplified implementation of individual methods.- 从以下版本开始:
- 3.2
- 作者:
- Rossen Stoyanchev, Rob Winch
构造器概要
构造器 构造器 说明 DeferredResultProcessingInterceptorAdapter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T> voidafterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult)This implementation is empty.<T> voidbeforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult)This implementation is empty.<T> booleanhandleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult)This implementation returnstrueby default allowing other interceptors to be given a chance to handle the timeout.<T> voidpostProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult)This implementation is empty.<T> voidpreProcess(NativeWebRequest request, DeferredResult<T> deferredResult)This implementation is empty.
构造器详细资料
DeferredResultProcessingInterceptorAdapter
public DeferredResultProcessingInterceptorAdapter()
方法详细资料
beforeConcurrentHandling
public <T> void beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
This implementation is empty.- 指定者:
beforeConcurrentHandling在接口中DeferredResultProcessingInterceptor- 参数:
request- the current requestdeferredResult- the DeferredResult for the current request- 抛出:
Exception- in case of errors
preProcess
public <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
This implementation is empty.- 指定者:
preProcess在接口中DeferredResultProcessingInterceptor- 参数:
request- the current requestdeferredResult- the DeferredResult for the current request- 抛出:
Exception- in case of errors
postProcess
public <T> void postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult) throws Exception
This implementation is empty.- 指定者:
postProcess在接口中DeferredResultProcessingInterceptor- 参数:
request- the current requestdeferredResult- the DeferredResult for the current requestconcurrentResult- the result to which theDeferredResult- 抛出:
Exception- in case of errors
handleTimeout
public <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
This implementation returnstrueby default allowing other interceptors to be given a chance to handle the timeout.- 指定者:
handleTimeout在接口中DeferredResultProcessingInterceptor- 参数:
request- the current requestdeferredResult- the DeferredResult for the current request; if theDeferredResultis set, then concurrent processing is resumed and subsequent interceptors are not invoked- 返回:
trueif processing should continue, orfalseif other interceptors should not be invoked- 抛出:
Exception- in case of errors
afterCompletion
public <T> void afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
This implementation is empty.- 指定者:
afterCompletion在接口中DeferredResultProcessingInterceptor- 参数:
request- the current requestdeferredResult- the DeferredResult for the current request- 抛出:
Exception- in case of errors