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 Summary
FieldsModifier 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.gzip.levelstatic final Stringcompression.lz4.levelstatic final Stringcompression.typestatic final Stringcompression.zstd.levelstatic final Stringconnections.max.idle.msstatic final Stringdelivery.timeout.msstatic final Stringenable.idempotencestatic final Stringstatic final Stringenable.metrics.pushstatic 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.max.msstatic 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.AbstractConfig
AUTOMATIC_CONFIG_PROVIDERS_PROPERTY, CONFIG_PROVIDERS_CONFIG -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.kafka.common.config.AbstractConfig
documentationOf, equals, 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_CONFIG
bootstrap.servers- See Also:
-
CLIENT_DNS_LOOKUP_CONFIG
client.dns.lookup- See Also:
-
METADATA_MAX_AGE_CONFIG
metadata.max.age.ms- See Also:
-
METADATA_MAX_IDLE_CONFIG
metadata.max.idle.ms- See Also:
-
BATCH_SIZE_CONFIG
batch.size- See Also:
-
PARTITIONER_ADPATIVE_PARTITIONING_ENABLE_CONFIG
partitioner.adaptive.partitioning.enable- See Also:
-
PARTITIONER_AVAILABILITY_TIMEOUT_MS_CONFIG
partitioner.availability.timeout.ms- See Also:
-
PARTITIONER_IGNORE_KEYS_CONFIG
partitioner.ignore.keys- See Also:
-
ACKS_CONFIG
acks- See Also:
-
LINGER_MS_CONFIG
linger.ms- See Also:
-
REQUEST_TIMEOUT_MS_CONFIG
request.timeout.ms- See Also:
-
DELIVERY_TIMEOUT_MS_CONFIG
delivery.timeout.ms- See Also:
-
CLIENT_ID_CONFIG
client.id- See Also:
-
SEND_BUFFER_CONFIG
send.buffer.bytes- See Also:
-
RECEIVE_BUFFER_CONFIG
receive.buffer.bytes- See Also:
-
MAX_REQUEST_SIZE_CONFIG
max.request.size- See Also:
-
RECONNECT_BACKOFF_MS_CONFIG
reconnect.backoff.ms- See Also:
-
RECONNECT_BACKOFF_MAX_MS_CONFIG
reconnect.backoff.max.ms- See Also:
-
MAX_BLOCK_MS_CONFIG
max.block.ms- See Also:
-
BUFFER_MEMORY_CONFIG
buffer.memory- See Also:
-
RETRY_BACKOFF_MS_CONFIG
retry.backoff.ms- See Also:
-
RETRY_BACKOFF_MAX_MS_CONFIG
retry.backoff.max.ms- See Also:
-
ENABLE_METRICS_PUSH_CONFIG
enable.metrics.push- See Also:
-
ENABLE_METRICS_PUSH_DOC
- See Also:
-
COMPRESSION_TYPE_CONFIG
compression.type- See Also:
-
COMPRESSION_GZIP_LEVEL_CONFIG
compression.gzip.level- See Also:
-
COMPRESSION_LZ4_LEVEL_CONFIG
compression.lz4.level- See Also:
-
COMPRESSION_ZSTD_LEVEL_CONFIG
compression.zstd.level- See Also:
-
METRICS_SAMPLE_WINDOW_MS_CONFIG
metrics.sample.window.ms- See Also:
-
METRICS_NUM_SAMPLES_CONFIG
metrics.num.samples- See Also:
-
METRICS_RECORDING_LEVEL_CONFIG
metrics.recording.level- See Also:
-
METRIC_REPORTER_CLASSES_CONFIG
metric.reporters- See Also:
-
AUTO_INCLUDE_JMX_REPORTER_CONFIG
Deprecated.auto.include.jmx.reporter- See Also:
-
MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION
max.in.flight.requests.per.connection- See Also:
-
RETRIES_CONFIG
retries- See Also:
-
KEY_SERIALIZER_CLASS_CONFIG
key.serializer- See Also:
-
KEY_SERIALIZER_CLASS_DOC
- See Also:
-
VALUE_SERIALIZER_CLASS_CONFIG
value.serializer- See Also:
-
VALUE_SERIALIZER_CLASS_DOC
- See Also:
-
SOCKET_CONNECTION_SETUP_TIMEOUT_MS_CONFIG
socket.connection.setup.timeout.ms- See Also:
-
SOCKET_CONNECTION_SETUP_TIMEOUT_MAX_MS_CONFIG
socket.connection.setup.timeout.max.ms- See Also:
-
CONNECTIONS_MAX_IDLE_MS_CONFIG
connections.max.idle.ms- See Also:
-
PARTITIONER_CLASS_CONFIG
partitioner.class- See Also:
-
INTERCEPTOR_CLASSES_CONFIG
interceptor.classes- See Also:
-
INTERCEPTOR_CLASSES_DOC
- See Also:
-
ENABLE_IDEMPOTENCE_CONFIG
enable.idempotence- See Also:
-
ENABLE_IDEMPOTENCE_DOC
- See Also:
-
TRANSACTION_TIMEOUT_CONFIG
transaction.timeout.ms- See Also:
-
TRANSACTION_TIMEOUT_DOC
- See Also:
-
TRANSACTIONAL_ID_CONFIG
transactional.id- See Also:
-
TRANSACTIONAL_ID_DOC
- See Also:
-
SECURITY_PROVIDERS_CONFIG
security.providers- See Also:
-
-
Constructor Details
-
ProducerConfig
-
ProducerConfig
-
-
Method Details
-
configNames
-
configDef
-
main
-