Optional ReadonlyacksAcknowledgement mode.
Optional ReadonlybatchBatching configuration.
When lingerMs > 0, messages are accumulated and flushed in batches.
Optional ReadonlycompressionCompression codec for record batches.
ReadonlyconnectionThe connection pool to use for sending messages.
Optional ReadonlyidempotentWhether this is an idempotent producer. When true, the producer sets acks to All and uses producer IDs.
Optional ReadonlypartitionerCustom partitioner function.
Optional ReadonlyretryRetry configuration for retriable errors.
Optional ReadonlytelemetryOpt-in telemetry configuration (KIP-714). When provided, the producer periodically pushes client metrics to the broker.
Optional ReadonlytimeoutTimeout in milliseconds for the broker to acknowledge the produce request.
Optional ReadonlytransactionalTransactional ID for transactional producers. Implies idempotent = true.
Options for creating a KafkaProducer.