Package | Description |
---|---|
org.springframework.web.context.request.async |
Support for asynchronous request processing.
|
Modifier and Type | Method and Description |
---|---|
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.afterCompletion(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> void |
DeferredResultProcessingInterceptorAdapter.beforeConcurrentHandling(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
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.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. |
<T> boolean |
TimeoutDeferredResultProcessingInterceptor.handleTimeout(NativeWebRequest request,
DeferredResult<T> result) |
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 |
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> 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.postProcess(NativeWebRequest request,
DeferredResult<T> deferredResult,
Object concurrentResult)
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.
|
<T> void |
DeferredResultProcessingInterceptorAdapter.preProcess(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
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. |