private class FrameworkServlet.RequestBindingInterceptor extends java.lang.Object implements CallableProcessingInterceptor
RESPONSE_HANDLED, RESULT_NONE
Modifier | Constructor and Description |
---|---|
private |
RequestBindingInterceptor() |
Modifier and Type | Method and Description |
---|---|
<T> void |
postProcess(NativeWebRequest webRequest,
java.util.concurrent.Callable<T> task,
java.lang.Object concurrentResult)
Invoked after the
Callable has produced a result in the
async thread in which the Callable is executed. |
<T> void |
preProcess(NativeWebRequest webRequest,
java.util.concurrent.Callable<T> task)
Invoked after the start of concurrent handling in the async
thread in which the
Callable is executed and before the
actual invocation of the Callable . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCompletion, beforeConcurrentHandling, handleError, handleTimeout
public <T> void preProcess(NativeWebRequest webRequest, java.util.concurrent.Callable<T> task)
CallableProcessingInterceptor
Callable
is executed and before the
actual invocation of the Callable
.
The default implementation is empty.
preProcess
in interface CallableProcessingInterceptor
webRequest
- the current requesttask
- the task for the current async requestpublic <T> void postProcess(NativeWebRequest webRequest, java.util.concurrent.Callable<T> task, java.lang.Object concurrentResult)
CallableProcessingInterceptor
Callable
has produced a result in the
async thread in which the Callable
is executed. This method may
be invoked later than afterTimeout
or afterCompletion
depending on when the Callable
finishes processing.
The default implementation is empty.
postProcess
in interface CallableProcessingInterceptor
webRequest
- 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 exception