AsyncRequestTimeoutException which is then handled by
Spring MVC's default exception handling as a 503 error.
Registered at the end, after all other interceptors and therefore invoked only if no other interceptor handles the timeout.
Note that according to RFC 7231, a 503 without a 'Retry-After' header is interpreted as a 500 error and the client should not retry. Applications can install their own interceptor to handle a timeout and add a 'Retry-After' header if necessary.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> Object | handleTimeout(NativeWebRequest
the current request request, Callable<T> the task for the current async request task)Overrides default org. Callable task completes.
|
| TimeoutCallableProcessingInterceptor | back to summary |
|---|---|
| public TimeoutCallableProcessingInterceptor() | |
| handleTimeout | back to summary |
|---|---|
| public <T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception Overrides default org. Doc from org. Invoked from a container thread when the async request times out before
the The default implementation always returns
| |