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 Details

    • AbstractCamelProducerTemplateFactoryBean

      public AbstractCamelProducerTemplateFactoryBean()
  • Method Details

    • getObject

      public org.apache.camel.ProducerTemplate getObject() throws Exception
      Specified by:
      getObject in class AbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
      Throws:
      Exception
    • getObjectType

      public Class<org.apache.camel.impl.engine.DefaultProducerTemplate> getObjectType()
      Specified by:
      getObjectType in class AbstractCamelFactoryBean<org.apache.camel.ProducerTemplate>
    • destroy

      public void destroy() throws Exception
      Overrides:
      destroy in class AbstractCamelFactoryBean<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