public class TaskExecutorFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<org.springframework.core.task.TaskExecutor>, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
FactoryBean
for creating ThreadPoolTaskExecutor
instances,
primarily used behind the XML task namespace.Constructor and Description |
---|
TaskExecutorFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
org.springframework.core.task.TaskExecutor |
getObject() |
java.lang.Class<? extends org.springframework.core.task.TaskExecutor> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanName(java.lang.String beanName) |
void |
setKeepAliveSeconds(int keepAliveSeconds) |
void |
setPoolSize(java.lang.String poolSize) |
void |
setQueueCapacity(int queueCapacity) |
void |
setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler) |
public void setPoolSize(java.lang.String poolSize)
public void setQueueCapacity(int queueCapacity)
public void setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler)
public void setKeepAliveSeconds(int keepAliveSeconds)
public void setBeanName(java.lang.String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public org.springframework.core.task.TaskExecutor getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<org.springframework.core.task.TaskExecutor>
public java.lang.Class<? extends org.springframework.core.task.TaskExecutor> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.springframework.core.task.TaskExecutor>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.springframework.core.task.TaskExecutor>
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean