程序包 cn.taketoday.web.context.async
package cn.taketoday.web.context.async
Support for asynchronous request processing.
-
类说明Exception to be thrown when an async request times out.Extends
RequestContextwith methods for asynchronous request processing.Assists with the invocation ofCallableProcessingInterceptor's.Intercepts concurrent request handling, where the concurrent result is obtained by executing aCallableon behalf of the application with anAsyncTaskExecutor.DeferredResultprovides an alternative to using aCallablefor asynchronous request processing.Handles a DeferredResult value when set.Assists with the invocation ofDeferredResultProcessingInterceptor's.Intercepts concurrent request handling, where the concurrent result is obtained by waiting for aDeferredResultto be set from a thread chosen by the application (e.g. 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. this is done indirectly by setting the result to anAsyncRequestTimeoutExceptionwhich is then handled by MVC's default exception handling as a 503 error.The central class for managing asynchronous request processing, mainly intended as an SPI and not typically used directly by application classes.WebAsyncManager FactoryA default MVC AsyncTaskExecutor that warns if used.WebAsyncTask<V>Holder for aCallable, a timeout value, and a task executor.