Package | Description |
---|---|
org.springframework.web.context.request.async |
Support for asynchronous request processing.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
DeferredResultProcessingInterceptorAdapter.afterCompletion(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.afterCompletion(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked from a container thread when an async request completed for any
reason including timeout and network error.
|
<T> void |
DeferredResultProcessingInterceptorAdapter.beforeConcurrentHandling(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.beforeConcurrentHandling(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked immediately before the start of concurrent handling, in the same
thread that started it.
|
<T> boolean |
DeferredResultProcessingInterceptorAdapter.handleError(NativeWebRequest request,
DeferredResult<T> deferredResult,
Throwable t)
Deprecated.
This implementation returns
true by default allowing other interceptors
to be given a chance to handle the error. |
default <T> boolean |
DeferredResultProcessingInterceptor.handleError(NativeWebRequest request,
DeferredResult<T> deferredResult,
Throwable t)
Invoked from a container thread when an error occurred while processing an async request
before the
DeferredResult has been set. |
<T> boolean |
DeferredResultProcessingInterceptorAdapter.handleTimeout(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation returns
true by default allowing other interceptors
to be given a chance to handle the timeout. |
default <T> boolean |
DeferredResultProcessingInterceptor.handleTimeout(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked from a container thread when an async request times out before
the
DeferredResult has been set. |
<T> boolean |
TimeoutDeferredResultProcessingInterceptor.handleTimeout(NativeWebRequest request,
DeferredResult<T> result) |
<T> void |
DeferredResultProcessingInterceptorAdapter.postProcess(NativeWebRequest request,
DeferredResult<T> deferredResult,
Object concurrentResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.postProcess(NativeWebRequest request,
DeferredResult<T> deferredResult,
Object concurrentResult)
Invoked after a
DeferredResult has been set, via
setResult(Object) or
setErrorResult(Object) , and is also ready to
handle the concurrent result. |
<T> void |
DeferredResultProcessingInterceptorAdapter.preProcess(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.preProcess(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked immediately after the start of concurrent handling, in the same
thread that started it.
|
void |
WebAsyncManager.startDeferredResultProcessing(DeferredResult<?> deferredResult,
Object... processingContext)
Start concurrent request processing and initialize the given
DeferredResult with a DeferredResult.DeferredResultHandler that saves
the result and dispatches the request to resume processing of that
result. |