Package org.apache.camel.core.xml
Class AbstractCamelProducerTemplateFactoryBean
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.core.xml.AbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
-
- org.apache.camel.core.xml.AbstractCamelProducerTemplateFactoryBean
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
public abstract class AbstractCamelProducerTemplateFactoryBean extends AbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
A factory for creating a newProducerTemplateinstance with a minimum of XML
-
-
Constructor Summary
Constructors Constructor Description AbstractCamelProducerTemplateFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()StringgetDefaultEndpoint()IntegergetMaximumCacheSize()org.apache.camel.ProducerTemplategetObject()Class<org.apache.camel.impl.engine.DefaultProducerTemplate>getObjectType()voidsetDefaultEndpoint(String defaultEndpoint)Sets the default endpoint URI used by default for sending message exchangesvoidsetMaximumCacheSize(Integer maximumCacheSize)Sets a custom maximum cache size to use in the backing cache pools.-
Methods inherited from class org.apache.camel.core.xml.AbstractCamelFactoryBean
afterPropertiesSet, discoverDefaultCamelContext, getCamelContext, getCamelContextId, getCamelContextWithId, getCustomId, isSingleton, setCamelContext, setCamelContextId, setCustomId
-
-
-
-
Method Detail
-
getObject
public org.apache.camel.ProducerTemplate getObject() throws Exception- Specified by:
getObjectin classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>- Throws:
Exception
-
getObjectType
public Class<org.apache.camel.impl.engine.DefaultProducerTemplate> getObjectType()
- Specified by:
getObjectTypein classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
-
destroy
public void destroy() throws Exception- Overrides:
destroyin classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>- Throws:
Exception
-
getDefaultEndpoint
public String getDefaultEndpoint()
-
setDefaultEndpoint
public void setDefaultEndpoint(String defaultEndpoint)
Sets the default endpoint URI used by default for sending message exchanges
-
getMaximumCacheSize
public Integer getMaximumCacheSize()
-
setMaximumCacheSize
public void setMaximumCacheSize(Integer maximumCacheSize)
Sets a custom maximum cache size to use in the backing cache pools.- Parameters:
maximumCacheSize- the custom maximum cache size
-
-