Class ProducerConfig
java.lang.Object
org.apache.kafka.common.config.AbstractConfig
org.apache.kafka.clients.producer.ProducerConfig
Configuration for the Kafka Producer. Documentation for these configurations can be found in the Kafka documentation
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringacksstatic final StringDeprecated.static final Stringbatch.sizestatic final Stringbootstrap.serversstatic final Stringbuffer.memorystatic final Stringclient.dns.lookupstatic final Stringclient.idstatic final Stringcompression.typestatic final Stringconnections.max.idle.msstatic final Stringdelivery.timeout.msstatic final Stringenable.idempotencestatic final Stringstatic final Stringinterceptor.classesstatic final Stringstatic final Stringkey.serializerstatic final Stringstatic final Stringlinger.msstatic final Stringmax.block.msstatic final Stringmax.in.flight.requests.per.connectionstatic final Stringmax.request.sizestatic final Stringmetadata.max.age.msstatic final Stringmetadata.max.idle.msstatic final Stringmetric.reportersstatic final Stringmetrics.num.samplesstatic final Stringmetrics.recording.levelstatic final Stringmetrics.sample.window.msstatic final Stringpartitioner.adaptive.partitioning.enablestatic final Stringpartitioner.availability.timeout.msstatic final Stringpartitioner.classstatic final Stringpartitioner.ignore.keysstatic final Stringreceive.buffer.bytesstatic final Stringreconnect.backoff.max.msstatic final Stringreconnect.backoff.msstatic final Stringrequest.timeout.msstatic final Stringretriesstatic final Stringretry.backoff.msstatic final Stringsecurity.providersstatic final Stringsend.buffer.bytesstatic final Stringsocket.connection.setup.timeout.max.msstatic final Stringsocket.connection.setup.timeout.msstatic final Stringtransaction.timeout.msstatic final Stringstatic final Stringtransactional.idstatic final Stringstatic final Stringvalue.serializerstatic final StringFields inherited from class org.apache.kafka.common.config.AbstractConfigCONFIG_PROVIDERS_CONFIG
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.kafka.common.config.AbstractConfigdocumentationOf, equals, get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, nonInternalValues, originals, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverride
- 
Field Details- 
BOOTSTRAP_SERVERS_CONFIGbootstrap.servers- See Also:
 
- 
CLIENT_DNS_LOOKUP_CONFIGclient.dns.lookup- See Also:
 
- 
METADATA_MAX_AGE_CONFIGmetadata.max.age.ms- See Also:
 
- 
METADATA_MAX_IDLE_CONFIGmetadata.max.idle.ms- See Also:
 
- 
BATCH_SIZE_CONFIGbatch.size- See Also:
 
- 
PARTITIONER_ADPATIVE_PARTITIONING_ENABLE_CONFIGpartitioner.adaptive.partitioning.enable- See Also:
 
- 
PARTITIONER_AVAILABILITY_TIMEOUT_MS_CONFIGpartitioner.availability.timeout.ms- See Also:
 
- 
PARTITIONER_IGNORE_KEYS_CONFIGpartitioner.ignore.keys- See Also:
 
- 
ACKS_CONFIGacks- See Also:
 
- 
LINGER_MS_CONFIGlinger.ms- See Also:
 
- 
REQUEST_TIMEOUT_MS_CONFIGrequest.timeout.ms- See Also:
 
- 
DELIVERY_TIMEOUT_MS_CONFIGdelivery.timeout.ms- See Also:
 
- 
CLIENT_ID_CONFIGclient.id- See Also:
 
- 
SEND_BUFFER_CONFIGsend.buffer.bytes- See Also:
 
- 
RECEIVE_BUFFER_CONFIGreceive.buffer.bytes- See Also:
 
- 
MAX_REQUEST_SIZE_CONFIGmax.request.size- See Also:
 
- 
RECONNECT_BACKOFF_MS_CONFIGreconnect.backoff.ms- See Also:
 
- 
RECONNECT_BACKOFF_MAX_MS_CONFIGreconnect.backoff.max.ms- See Also:
 
- 
MAX_BLOCK_MS_CONFIGmax.block.ms- See Also:
 
- 
BUFFER_MEMORY_CONFIGbuffer.memory- See Also:
 
- 
RETRY_BACKOFF_MS_CONFIGretry.backoff.ms- See Also:
 
- 
COMPRESSION_TYPE_CONFIGcompression.type- See Also:
 
- 
METRICS_SAMPLE_WINDOW_MS_CONFIGmetrics.sample.window.ms- See Also:
 
- 
METRICS_NUM_SAMPLES_CONFIGmetrics.num.samples- See Also:
 
- 
METRICS_RECORDING_LEVEL_CONFIGmetrics.recording.level- See Also:
 
- 
METRIC_REPORTER_CLASSES_CONFIGmetric.reporters- See Also:
 
- 
AUTO_INCLUDE_JMX_REPORTER_CONFIGDeprecated.auto.include.jmx.reporter- See Also:
 
- 
MAX_IN_FLIGHT_REQUESTS_PER_CONNECTIONmax.in.flight.requests.per.connection- See Also:
 
- 
RETRIES_CONFIGretries- See Also:
 
- 
KEY_SERIALIZER_CLASS_CONFIGkey.serializer- See Also:
 
- 
KEY_SERIALIZER_CLASS_DOC- See Also:
 
- 
VALUE_SERIALIZER_CLASS_CONFIGvalue.serializer- See Also:
 
- 
VALUE_SERIALIZER_CLASS_DOC- See Also:
 
- 
SOCKET_CONNECTION_SETUP_TIMEOUT_MS_CONFIGsocket.connection.setup.timeout.ms- See Also:
 
- 
SOCKET_CONNECTION_SETUP_TIMEOUT_MAX_MS_CONFIGsocket.connection.setup.timeout.max.ms- See Also:
 
- 
CONNECTIONS_MAX_IDLE_MS_CONFIGconnections.max.idle.ms- See Also:
 
- 
PARTITIONER_CLASS_CONFIGpartitioner.class- See Also:
 
- 
INTERCEPTOR_CLASSES_CONFIGinterceptor.classes- See Also:
 
- 
INTERCEPTOR_CLASSES_DOC- See Also:
 
- 
ENABLE_IDEMPOTENCE_CONFIGenable.idempotence- See Also:
 
- 
ENABLE_IDEMPOTENCE_DOC- See Also:
 
- 
TRANSACTION_TIMEOUT_CONFIGtransaction.timeout.ms- See Also:
 
- 
TRANSACTION_TIMEOUT_DOC- See Also:
 
- 
TRANSACTIONAL_ID_CONFIGtransactional.id- See Also:
 
- 
TRANSACTIONAL_ID_DOC- See Also:
 
- 
SECURITY_PROVIDERS_CONFIGsecurity.providers- See Also:
 
 
- 
- 
Constructor Details- 
ProducerConfig
- 
ProducerConfig
 
- 
- 
Method Details- 
postProcessParsedConfigDescription copied from class:AbstractConfigCalled directly after user configs got parsed (and thus default values got set). This allows to change default values for "secondary defaults" if required.- Overrides:
- postProcessParsedConfigin class- AbstractConfig
- Parameters:
- parsedValues- unmodifiable map of current configuration
- Returns:
- a map of updates that should be applied to the configuration (will be validated to prevent bad updates)
 
- 
configNames
- 
configDef
- 
main
 
-