Top Description Interfaces Classes
[default module]

Package org.springframework.web.context.request.async

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Support for asynchronous request processing.

Interface Summary

Modifier and TypeInterface and Description
public interface
AsyncWebRequest

Extends NativeWebRequest with methods for asynchronous request processing.

public interface
CallableProcessingInterceptor

Intercepts concurrent request handling, where the concurrent result is obtained by executing a Callable on behalf of the application with an AsyncTaskExecutor.

public interface
DeferredResultProcessingInterceptor

Intercepts concurrent request handling, where the concurrent result is obtained by waiting for a DeferredResult to be set from a thread chosen by the application (e.g. in response to some external event).

Class Summary

Modifier and TypeClass and Description
public class
AsyncRequestTimeoutException

Exception to be thrown when an async request times out.

pack-priv class
public class
DeferredResult<
the result type
T
>

DeferredResult provides an alternative to using a Callable for asynchronous request processing.

pack-priv class
public class
StandardServletAsyncWebRequest

A Servlet implementation of AsyncWebRequest.

public class
TimeoutCallableProcessingInterceptor

Sends a 503 (SERVICE_UNAVAILABLE) in case of a timeout if the response is not already committed.

public class
TimeoutDeferredResultProcessingInterceptor

Sends a 503 (SERVICE_UNAVAILABLE) in case of a timeout if the response is not already committed.

public class
WebAsyncManager

The central class for managing asynchronous request processing, mainly intended as an SPI and not typically used directly by application classes.

public class
WebAsyncTask<
the value type
V
>

Holder for a Callable, a timeout value, and a task executor.

public abstract class
WebAsyncUtils

Utility methods related to processing asynchronous web requests.