org.apache.camel.core.xml
Class AbstractCamelThreadPoolFactoryBean

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.core.xml.AbstractCamelThreadPoolFactoryBean
All Implemented Interfaces:
CamelContextAware

public abstract class AbstractCamelThreadPoolFactoryBean
extends IdentifiedType
implements CamelContextAware

A factory which instantiates ExecutorService objects

Version:
$Revision: 925208 $

Constructor Summary
AbstractCamelThreadPoolFactoryBean()
           
 
Method Summary
 CamelContext getCamelContext()
           
 String getCamelContextId()
           
protected abstract  CamelContext getCamelContextWithId(String camelContextId)
           
 Long getKeepAliveTime()
           
 Integer getMaxPoolSize()
           
 Integer getMaxQueueSize()
           
 Object getObject()
           
 Class getObjectType()
           
 Integer getPoolSize()
           
 ThreadPoolRejectedPolicy getRejectedPolicy()
           
 String getThreadName()
           
 TimeUnit getTimeUnit()
           
 Boolean isDaemon()
           
 boolean isSingleton()
           
 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

AbstractCamelThreadPoolFactoryBean

public AbstractCamelThreadPoolFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Throws:
Exception

getCamelContextWithId

protected abstract CamelContext getCamelContextWithId(String camelContextId)

getObjectType

public Class getObjectType()

isSingleton

public boolean isSingleton()

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


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