Package org.springframework.web.context.request.async
@NullMarked
package org.springframework.web.context.request.async
Support for asynchronous request processing.
-
ClassDescriptionRaised when the response for an asynchronous request becomes unusable as indicated by a write failure, or a Servlet container error notification, or after the async request has completed.Exception to be thrown when an async request times out.Extends
NativeWebRequest
with methods for asynchronous request processing.Intercepts concurrent request handling, where the concurrent result is obtained by executing aCallable
on behalf of the application with anAsyncTaskExecutor
.DeferredResult
provides an alternative to using aCallable
for asynchronous request processing.Handles a DeferredResult value when set.Intercepts concurrent request handling, where the concurrent result is obtained by waiting for aDeferredResult
to be set from a thread chosen by the application (for example, in response to some external event).A Servlet implementation ofAsyncWebRequest
.Sends a 503 (SERVICE_UNAVAILABLE) in case of a timeout if the response is not already committed.Sends a 503 (SERVICE_UNAVAILABLE) in case of a timeout if the response is not already committed.The central class for managing asynchronous request processing, mainly intended as an SPI and not typically used directly by application classes.WebAsyncTask<V>Holder for aCallable
, a timeout value, and a task executor.Utility methods related to processing asynchronous web requests.