Skip to content

io.helidon.messaging.connectors.kafka.KafkaConfigBuilder

Description

Build Kafka specific config

Configuration options

KeyTypeDescription
value-deserializerClassDeserializer class for value that implements the org.apache.kafka.common.serialization.Deserializer interface
group-idStringA unique string that identifies the consumer group this consumer belongs to
auto-offset-resetAutoOffsetResetWhat to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server (e.g
topic-patternPatternPattern for topic names to consume from
acksStringThe number of acknowledgments the producer requires the leader to have received before considering a request complete
bootstrap-serversStringA list of host/port pairs to use for establishing the initial connection to the Kafka cluster
key-serializerClassSerializer class for key that implements the org.apache.kafka.common.serialization.Serializer interface
enable-auto-commitBooleanIf true the consumer's offset will be periodically committed in the background
batch-sizeIntegerThe producer will attempt to batch records together into fewer requests whenever multiple records are being sent to the same partition
dlq-topicList<String>Names of the "dead letter queue" topics to be used in case message is nacked
retriesIntegerSetting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error
buffer-memoryLongThe total bytes of memory the producer can use to buffer records waiting to be sent to the server
poll-timeoutLongThe maximum time to block polling loop in milliseconds
compression-typeStringThe compression type for all data generated by the producer
topicList<String>Names of the topics to consume from
value-serializerClassSerializer class for value that implements the org.apache.kafka.common.serialization.Serializer interface
period-executionsLongPeriod between successive executions of polling loop
key-deserializerClassDeserializer class for key that implements the org.apache.kafka.common.serialization.Deserializer interface

See the manifest for all available types.