# Uses of Class
org.springframework.web.context.request.async.DeferredResult

Packages that use DeferredResult
Package
Description
org.springframework.web.context.request.async
Support for asynchronous request processing.

## Uses of DeferredResult in org.springframework.web.context.request.async

Methods in org.springframework.web.context.request.async with parameters of type DeferredResult
Modifier and Type
Method
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.
`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.
`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.
`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)`
`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.
`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.