public abstract class CallableProcessingInterceptorAdapter extends java.lang.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,
java.util.concurrent.Callable<T> task)
This implementation is empty.
|
<T> void |
beforeConcurrentHandling(NativeWebRequest request,
java.util.concurrent.Callable<T> task)
This implementation is empty.
|
<T> java.lang.Object |
handleTimeout(NativeWebRequest request,
java.util.concurrent.Callable<T> task)
This implementation always returns
RESULT_NONE . |
<T> void |
postProcess(NativeWebRequest request,
java.util.concurrent.Callable<T> task,
java.lang.Object concurrentResult)
This implementation is empty.
|
<T> void |
preProcess(NativeWebRequest request,
java.util.concurrent.Callable<T> task)
This implementation is empty.
|
public CallableProcessingInterceptorAdapter()
public <T> void beforeConcurrentHandling(NativeWebRequest request, java.util.concurrent.Callable<T> task) throws java.lang.Exception
beforeConcurrentHandling
in interface CallableProcessingInterceptor
request
- the current requesttask
- the task for the current async requestjava.lang.Exception
- in case of errorspublic <T> void preProcess(NativeWebRequest request, java.util.concurrent.Callable<T> task) throws java.lang.Exception
preProcess
in interface CallableProcessingInterceptor
request
- the current requesttask
- the task for the current async requestjava.lang.Exception
- in case of errorspublic <T> void postProcess(NativeWebRequest request, java.util.concurrent.Callable<T> task, java.lang.Object concurrentResult) throws java.lang.Exception
postProcess
in interface CallableProcessingInterceptor
request
- 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 exceptionjava.lang.Exception
- in case of errorspublic <T> java.lang.Object handleTimeout(NativeWebRequest request, java.util.concurrent.Callable<T> task) throws java.lang.Exception
RESULT_NONE
.handleTimeout
in interface CallableProcessingInterceptor
request
- 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 invokedjava.lang.Exception
- in case of errorspublic <T> void afterCompletion(NativeWebRequest request, java.util.concurrent.Callable<T> task) throws java.lang.Exception
afterCompletion
in interface CallableProcessingInterceptor
request
- the current requesttask
- the task for the current async requestjava.lang.Exception
- in case of errors