|
|
|
@ -102,17 +102,18 @@ public interface CallableProcessingInterceptor { |
|
|
|
<T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception; |
|
|
|
<T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Invoked from a container thread when an error occurred while processing the async request |
|
|
|
* Invoked from a container thread when an error occurred while processing |
|
|
|
* before the {@code Callable} task completes. Implementations may return a value, |
|
|
|
* the async request before the {@code Callable} task completes. |
|
|
|
* including an {@link Exception}, to use instead of the value the |
|
|
|
* Implementations may return a value, including an {@link Exception}, to |
|
|
|
* {@link Callable} did not return in time. |
|
|
|
* use instead of the value the {@link Callable} did not return in time. |
|
|
|
* @param request the current request |
|
|
|
* @param request the current request |
|
|
|
* @param task the task for the current async request |
|
|
|
* @param task the task for the current async request |
|
|
|
* @paramt t the error that occurred while request processing |
|
|
|
* @param t the error that occurred while request processing |
|
|
|
* @return a concurrent result value; if the value is anything other than |
|
|
|
* @return a concurrent result value; if the value is anything other than |
|
|
|
* {@link #RESULT_NONE} or {@link #RESPONSE_HANDLED}, concurrent processing |
|
|
|
* {@link #RESULT_NONE} or {@link #RESPONSE_HANDLED}, concurrent processing |
|
|
|
* is resumed and subsequent interceptors are not invoked |
|
|
|
* is resumed and subsequent interceptors are not invoked |
|
|
|
* @throws Exception in case of errors |
|
|
|
* @throws Exception in case of errors |
|
|
|
|
|
|
|
* @since 5.0 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
<T> Object handleError(NativeWebRequest request, Callable<T> task, Throwable t) throws Exception; |
|
|
|
<T> Object handleError(NativeWebRequest request, Callable<T> task, Throwable t) throws Exception; |
|
|
|
|
|
|
|
|
|
|
|
|