org.apache.camel.spring
Class CamelThreadPoolFactoryBean

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.spring.CamelThreadPoolFactoryBean
All Implemented Interfaces:
CamelContextAware, FactoryBean, ApplicationContextAware

public class CamelThreadPoolFactoryBean
extends IdentifiedType
implements FactoryBean, CamelContextAware, ApplicationContextAware

A FactoryBean which instantiates ExecutorService objects

Version:
$Revision: 925208 $

Constructor Summary
CamelThreadPoolFactoryBean()
           
 
Method Summary
 ApplicationContext getApplicationContext()
           
 CamelContext getCamelContext()
           
 String getCamelContextId()
           
 Long getKeepAliveTime()
           
 Integer getMaxPoolSize()
           
 Integer getMaxQueueSize()
           
 Object getObject()
           
 Class getObjectType()
           
 Integer getPoolSize()
           
 ThreadPoolRejectedPolicy getRejectedPolicy()
           
 String getThreadName()
           
 TimeUnit getTimeUnit()
           
 Boolean isDaemon()
           
 boolean isSingleton()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setCamelContext(CamelContext camelContext)
           
 void setCamelContextId(String camelContextId)
           
 void setDaemon(Boolean daemon)
           
 void setKeepAliveTime(Long keepAliveTime)
           
 void setMaxPoolSize(Integer maxPoolSize)
           
 void setMaxQueueSize(Integer maxQueueSize)
           
 void setPoolSize(Integer poolSize)
           
 void setRejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
           
 void setThreadName(String threadName)
           
 void setTimeUnit(TimeUnit timeUnit)
           
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelThreadPoolFactoryBean

public CamelThreadPoolFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

getPoolSize

public Integer getPoolSize()

setPoolSize

public void setPoolSize(Integer poolSize)

getMaxPoolSize

public Integer getMaxPoolSize()

setMaxPoolSize

public void setMaxPoolSize(Integer maxPoolSize)

getKeepAliveTime

public Long getKeepAliveTime()

setKeepAliveTime

public void setKeepAliveTime(Long keepAliveTime)

getTimeUnit

public TimeUnit getTimeUnit()

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)

getMaxQueueSize

public Integer getMaxQueueSize()

setMaxQueueSize

public void setMaxQueueSize(Integer maxQueueSize)

getRejectedPolicy

public ThreadPoolRejectedPolicy getRejectedPolicy()

setRejectedPolicy

public void setRejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)

getThreadName

public String getThreadName()

setThreadName

public void setThreadName(String threadName)

isDaemon

public Boolean isDaemon()

setDaemon

public void setDaemon(Boolean daemon)

getCamelContextId

public String getCamelContextId()

setCamelContextId

public void setCamelContextId(String camelContextId)

getCamelContext

public CamelContext getCamelContext()
Specified by:
getCamelContext in interface CamelContextAware

setCamelContext

public void setCamelContext(CamelContext camelContext)
Specified by:
setCamelContext in interface CamelContextAware

getApplicationContext

public ApplicationContext getApplicationContext()

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface ApplicationContextAware


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.