类 WebAsyncManagerFactory
java.lang.Object
cn.taketoday.web.context.async.WebAsyncManagerFactory
WebAsyncManager Factory
- 从以下版本开始:
- 4.0 2022/12/3 22:26
- 作者:
- Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明private static classA default MVC AsyncTaskExecutor that warns if used. -
字段概要
字段修饰符和类型字段说明private Longprivate CallableProcessingInterceptor[]private DeferredResultProcessingInterceptor[]private static final cn.taketoday.logging.Loggerprivate cn.taketoday.core.task.AsyncTaskExecutor -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static WebAsyncManagerFactoryfind(cn.taketoday.context.ApplicationContext context) getWebAsyncManager(RequestContext request) voidsetAsyncRequestTimeout(long timeout) Specify the amount of time, in milliseconds, before concurrent handling should time out.voidsetCallableInterceptors(List<CallableProcessingInterceptor> interceptors) ConfigureCallableProcessingInterceptor's to register on async requests.voidsetDeferredResultInterceptors(List<DeferredResultProcessingInterceptor> interceptors) ConfigureDeferredResultProcessingInterceptor's to register on async requests.voidsetTaskExecutor(cn.taketoday.core.task.AsyncTaskExecutor taskExecutor) Set the defaultAsyncTaskExecutorto use when a controller method return aCallable.
-
字段详细资料
-
log
private static final cn.taketoday.logging.Logger log -
callableInterceptors
-
deferredResultInterceptors
-
asyncRequestTimeout
-
taskExecutor
private cn.taketoday.core.task.AsyncTaskExecutor taskExecutor
-
-
构造器详细资料
-
WebAsyncManagerFactory
public WebAsyncManagerFactory()
-
-
方法详细资料
-
setTaskExecutor
public void setTaskExecutor(cn.taketoday.core.task.AsyncTaskExecutor taskExecutor) Set the defaultAsyncTaskExecutorto use when a controller method return aCallable. Controller methods can override this default on a per-request basis by returning anWebAsyncTask.If your application has controllers with such return types, please configure an
AsyncTaskExecutoras the one used by default is not suitable for production under load. -
setAsyncRequestTimeout
public void setAsyncRequestTimeout(long timeout) Specify the amount of time, in milliseconds, before concurrent handling should time out. In Servlet 3, the timeout begins after the main request processing thread has exited and ends when the request is dispatched again for further processing of the concurrently produced result.If this value is not set, the default timeout of the underlying implementation is used.
- 参数:
timeout- the timeout value in milliseconds
-
setCallableInterceptors
ConfigureCallableProcessingInterceptor's to register on async requests.- 参数:
interceptors- the interceptors to register
-
setDeferredResultInterceptors
ConfigureDeferredResultProcessingInterceptor's to register on async requests.- 参数:
interceptors- the interceptors to register
-
getWebAsyncManager
-
find
-