类 TaskExecutorFactoryBean
java.lang.Object
cn.taketoday.scheduling.config.TaskExecutorFactoryBean
- 所有已实现的接口:
Aware,BeanNameAware,DisposableBean,FactoryBean<cn.taketoday.core.task.TaskExecutor>,InitializingBean
public class TaskExecutorFactoryBean
extends Object
implements FactoryBean<cn.taketoday.core.task.TaskExecutor>, BeanNameAware, InitializingBean, DisposableBean
FactoryBean for creating ThreadPoolTaskExecutor instances,
primarily used behind the XML task namespace.- 从以下版本开始:
- 4.0
- 作者:
- Mark Fisher, Juergen Hoeller
-
字段概要
从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoiddestroy()cn.taketoday.core.task.TaskExecutorClass<? extends cn.taketoday.core.task.TaskExecutor>booleanvoidsetBeanName(String beanName) voidsetKeepAliveSeconds(int keepAliveSeconds) voidsetPoolSize(String poolSize) voidsetQueueCapacity(int queueCapacity) voidsetRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
-
构造器详细资料
-
TaskExecutorFactoryBean
public TaskExecutorFactoryBean()
-
-
方法详细资料
-
setPoolSize
-
setQueueCapacity
public void setQueueCapacity(int queueCapacity) -
setRejectedExecutionHandler
-
setKeepAliveSeconds
public void setKeepAliveSeconds(int keepAliveSeconds) -
setBeanName
- 指定者:
setBeanName在接口中BeanNameAware
-
afterPropertiesSet
public void afterPropertiesSet()- 指定者:
afterPropertiesSet在接口中InitializingBean
-
getObject
@Nullable public cn.taketoday.core.task.TaskExecutor getObject()- 指定者:
getObject在接口中FactoryBean<cn.taketoday.core.task.TaskExecutor>
-
getObjectType
- 指定者:
getObjectType在接口中FactoryBean<cn.taketoday.core.task.TaskExecutor>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中FactoryBean<cn.taketoday.core.task.TaskExecutor>
-
destroy
public void destroy()- 指定者:
destroy在接口中DisposableBean
-