程序包的使用
cn.taketoday.web.context.async
程序包
说明
Support for asynchronous request processing.
Web Handler
Provides the types that make up Infra functional web framework.
Classes supporting the
cn.taketoday.web.servlet.function package.Method handler
-
类说明Extends
RequestContextwith methods for asynchronous request processing.The central class for managing asynchronous request processing, mainly intended as an SPI and not typically used directly by application classes.WebAsyncManager Factory -
类说明Intercepts concurrent request handling, where the concurrent result is obtained by executing a
Callableon behalf of the application with anAsyncTaskExecutor.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).WebAsyncManager Factory -
类说明Extends
RequestContextwith methods for asynchronous request processing.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.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).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 FactoryHolder for aCallable, a timeout value, and a task executor. -
类说明Exception to be thrown when an async request times out.WebAsyncManager Factory
-
类说明Extends
RequestContextwith methods for asynchronous request processing.DeferredResultprovides an alternative to using aCallablefor asynchronous request processing. -
类说明The central class for managing asynchronous request processing, mainly intended as an SPI and not typically used directly by application classes.
-
类说明
DeferredResultprovides an alternative to using aCallablefor asynchronous request processing. -
类说明
DeferredResultprovides an alternative to using aCallablefor asynchronous request processing. -