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
,org.apache.camel.spi.HasCamelContext
public abstract class AbstractCamelProducerTemplateFactoryBean
extends AbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
A factory for creating a new
ProducerTemplate
instance with a minimum of XML-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
org.apache.camel.ProducerTemplate
Class<org.apache.camel.impl.engine.DefaultProducerTemplate>
void
setDefaultEndpoint
(String defaultEndpoint) Sets the default endpoint URI used by default for sending message exchangesvoid
setMaximumCacheSize
(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
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
AbstractCamelProducerTemplateFactoryBean
public AbstractCamelProducerTemplateFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObject
in classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
-
destroy
- Overrides:
destroy
in classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
- Throws:
Exception
-
getDefaultEndpoint
-
setDefaultEndpoint
Sets the default endpoint URI used by default for sending message exchanges -
getMaximumCacheSize
-
setMaximumCacheSize
Sets a custom maximum cache size to use in the backing cache pools.- Parameters:
maximumCacheSize
- the custom maximum cache size
-