类 CallableProcessingInterceptorAdapter
- java.lang.Object
- org.springframework.web.context.request.async.CallableProcessingInterceptorAdapter
- 所有已实现的接口:
CallableProcessingInterceptor
public abstract class CallableProcessingInterceptorAdapter extends Object implements CallableProcessingInterceptor
Abstract adapter class for theCallableProcessingInterceptor
interface, for simplified implementation of individual methods.- 从以下版本开始:
- 3.2
- 作者:
- Rossen Stoyanchev, Rob Winch
字段概要
从接口继承的字段 org.springframework.web.context.request.async.CallableProcessingInterceptor
RESPONSE_HANDLED, RESULT_NONE
构造器概要
构造器 构造器 说明 CallableProcessingInterceptorAdapter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T> void
afterCompletion(NativeWebRequest request, Callable<T> task)
This implementation is empty.<T> void
beforeConcurrentHandling(NativeWebRequest request, Callable<T> task)
This implementation is empty.<T> Object
handleTimeout(NativeWebRequest request, Callable<T> task)
This implementation always returnsRESULT_NONE
.<T> void
postProcess(NativeWebRequest request, Callable<T> task, Object concurrentResult)
This implementation is empty.<T> void
preProcess(NativeWebRequest request, Callable<T> task)
This implementation is empty.
构造器详细资料
CallableProcessingInterceptorAdapter
public CallableProcessingInterceptorAdapter()
方法详细资料
beforeConcurrentHandling
public <T> void beforeConcurrentHandling(NativeWebRequest request, Callable<T> task) throws Exception
This implementation is empty.- 指定者:
beforeConcurrentHandling
在接口中CallableProcessingInterceptor
- 参数:
request
- the current requesttask
- the task for the current async request- 抛出:
Exception
- in case of errors
preProcess
public <T> void preProcess(NativeWebRequest request, Callable<T> task) throws Exception
This implementation is empty.- 指定者:
preProcess
在接口中CallableProcessingInterceptor
- 参数:
request
- the current requesttask
- the task for the current async request- 抛出:
Exception
- in case of errors
postProcess
public <T> void postProcess(NativeWebRequest request, Callable<T> task, Object concurrentResult) throws Exception
This implementation is empty.- 指定者:
postProcess
在接口中CallableProcessingInterceptor
- 参数:
request
- the current requesttask
- the task for the current async requestconcurrentResult
- the result of concurrent processing, which could be aThrowable
if theCallable
raised an exception- 抛出:
Exception
- in case of errors
handleTimeout
public <T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception
This implementation always returnsRESULT_NONE
.- 指定者:
handleTimeout
在接口中CallableProcessingInterceptor
- 参数:
request
- the current requesttask
- the task for the current async request- 返回:
- a concurrent result value; if the value is anything other than
CallableProcessingInterceptor.RESULT_NONE
orCallableProcessingInterceptor.RESPONSE_HANDLED
, concurrent processing is resumed and subsequent interceptors are not invoked - 抛出:
Exception
- in case of errors
afterCompletion
public <T> void afterCompletion(NativeWebRequest request, Callable<T> task) throws Exception
This implementation is empty.- 指定者:
afterCompletion
在接口中CallableProcessingInterceptor
- 参数:
request
- the current requesttask
- the task for the current async request- 抛出:
Exception
- in case of errors