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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()org.apache.camel.ProducerTemplateClass<org.apache.camel.impl.engine.DefaultProducerTemplate> 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, setCustomIdMethods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
AbstractCamelProducerTemplateFactoryBean
public AbstractCamelProducerTemplateFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein classAbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
-
destroy
- Overrides:
destroyin 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
-