Class ApacheKafkaProducerConfig

java.lang.Object
com.linkedin.venice.pubsub.adapter.kafka.producer.ApacheKafkaProducerConfig

public class ApacheKafkaProducerConfig extends Object
This class holds all properties used to construct ApacheKafkaProducerAdapter (This class could be refactored to hold consumer properties as well). Tune and adjust the configs in this class to control the behavior of Apache Kafka producer.
  • Field Details

  • Constructor Details

    • ApacheKafkaProducerConfig

      public ApacheKafkaProducerConfig(Properties allVeniceProperties)
    • ApacheKafkaProducerConfig

      public ApacheKafkaProducerConfig(VeniceProperties allVeniceProperties, String brokerAddressToOverride, String producerName, boolean strictConfigs)
  • Method Details

    • getProducerProperties

      public Properties getProducerProperties()
    • getPubsubBrokerAddress

      public static String getPubsubBrokerAddress(VeniceProperties properties)
    • getBrokerAddress

      public String getBrokerAddress()
    • getValidProducerProperties

      public static Properties getValidProducerProperties(Properties extractedProperties)
    • copyKafkaSASLProperties

      public static void copyKafkaSASLProperties(VeniceProperties configuration, Properties properties, boolean stripPrefix)
    • copyKafkaSASLProperties

      public static void copyKafkaSASLProperties(Properties configuration, Properties properties, boolean stripPrefix)