public abstract class CallableProcessingInterceptorAdapter extends Object implements CallableProcessingInterceptor
CallableProcessingInterceptor interface,
for simplified implementation of individual methods.RESPONSE_HANDLED, RESULT_NONE| Constructor and Description |
|---|
CallableProcessingInterceptorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
<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 returns
RESULT_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.
|
public CallableProcessingInterceptorAdapter()
public <T> void beforeConcurrentHandling(NativeWebRequest request, Callable<T> task) throws Exception
beforeConcurrentHandling in interface CallableProcessingInterceptorrequest - the current requesttask - the task for the current async requestException - in case of errorspublic <T> void preProcess(NativeWebRequest request, Callable<T> task) throws Exception
preProcess in interface CallableProcessingInterceptorrequest - the current requesttask - the task for the current async requestException - in case of errorspublic <T> void postProcess(NativeWebRequest request, Callable<T> task, Object concurrentResult) throws Exception
postProcess in interface CallableProcessingInterceptorrequest - the current requesttask - the task for the current async requestconcurrentResult - the result of concurrent processing, which could
be a Throwable if the Callable raised an exceptionException - in case of errorspublic <T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception
RESULT_NONE.handleTimeout in interface CallableProcessingInterceptorrequest - the current requesttask - the task for the current async requestCallableProcessingInterceptor.RESULT_NONE or CallableProcessingInterceptor.RESPONSE_HANDLED, concurrent processing
is resumed and subsequent interceptors are not invokedException - in case of errorspublic <T> void afterCompletion(NativeWebRequest request, Callable<T> task) throws Exception
afterCompletion in interface CallableProcessingInterceptorrequest - the current requesttask - the task for the current async requestException - in case of errors