Class KafkaSenderFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

    public class KafkaSenderFactoryBean
    extends org.springframework.beans.factory.config.AbstractFactoryBean
    Spring XML config does not support chained builders. This converts accordingly
    • Constructor Detail

      • KafkaSenderFactoryBean

        public KafkaSenderFactoryBean()
    • Method Detail

      • createInstance

        protected KafkaSender createInstance()
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
      • getObjectType

        public Class<? extends KafkaSender> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean
        Overrides:
        isSingleton in class org.springframework.beans.factory.config.AbstractFactoryBean
      • destroyInstance

        protected void destroyInstance​(Object instance)
        Overrides:
        destroyInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
      • setBootstrapServers

        public void setBootstrapServers​(String bootstrapServers)
      • setTopic

        public void setTopic​(String topic)
      • setEncoding

        public void setEncoding​(Encoding encoding)
      • setMessageMaxBytes

        public void setMessageMaxBytes​(Integer messageMaxBytes)