Class ApacheKafkaProducerConfig
java.lang.Object
com.linkedin.venice.pubsub.adapter.kafka.producer.ApacheKafkaProducerConfig
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 Summary
Modifier and TypeFieldDescriptionstatic final String
Default Kafka batch size and linger time for better producer performance during ingestion.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Deprecated. -
Constructor Summary
ConstructorDescriptionApacheKafkaProducerConfig
(VeniceProperties allVeniceProperties, String brokerAddressToOverride, String producerName, boolean strictConfigs) ApacheKafkaProducerConfig
(Properties allVeniceProperties) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyKafkaSASLProperties
(VeniceProperties configuration, Properties properties, boolean stripPrefix) static void
copyKafkaSASLProperties
(Properties configuration, Properties properties, boolean stripPrefix) static String
getPubsubBrokerAddress
(VeniceProperties properties) static Properties
getValidProducerProperties
(Properties extractedProperties)
-
Field Details
-
KAFKA_CONFIG_PREFIX
- See Also:
-
KAFKA_BOOTSTRAP_SERVERS
- See Also:
-
KAFKA_PRODUCER_RETRIES_CONFIG
- See Also:
-
KAFKA_LINGER_MS
- See Also:
-
KAFKA_BUFFER_MEMORY
- See Also:
-
KAFKA_CLIENT_ID
- See Also:
-
KAFKA_KEY_SERIALIZER
- See Also:
-
KAFKA_COMPRESSION_TYPE
- See Also:
-
KAFKA_VALUE_SERIALIZER
- See Also:
-
KAFKA_PRODUCER_DELIVERY_TIMEOUT_MS
- See Also:
-
KAFKA_PRODUCER_REQUEST_TIMEOUT_MS
- See Also:
-
SSL_KAFKA_BOOTSTRAP_SERVERS
- See Also:
-
SSL_TO_KAFKA_LEGACY
Deprecated.UseKAFKA_OVER_SSL
insteadN.B. do not attempt to change spelling, "kakfa", without carefully replacing all instances in use and some of them may be external to this repo- See Also:
-
KAFKA_OVER_SSL
- See Also:
-
DEFAULT_KAFKA_BATCH_SIZE
Default Kafka batch size and linger time for better producer performance during ingestion.- See Also:
-
DEFAULT_KAFKA_LINGER_MS
- See Also:
-
-
Constructor Details
-
ApacheKafkaProducerConfig
-
ApacheKafkaProducerConfig
public ApacheKafkaProducerConfig(VeniceProperties allVeniceProperties, String brokerAddressToOverride, String producerName, boolean strictConfigs)
-
-
Method Details
-
getProducerProperties
-
getPubsubBrokerAddress
-
getBrokerAddress
-
getValidProducerProperties
-
copyKafkaSASLProperties
public static void copyKafkaSASLProperties(VeniceProperties configuration, Properties properties, boolean stripPrefix) -
copyKafkaSASLProperties
public static void copyKafkaSASLProperties(Properties configuration, Properties properties, boolean stripPrefix)
-
KAFKA_OVER_SSL
instead