Consumer Configurations
ConsumerConfig
Package: io.axual.client.config
Use this class to build a configuration for a non-AVRO consumer.
Usage
ConsumerConfig.builder()
.setKeyDeserializer()
.setValueDeserializer()
.setStream()
.setDeliveryStrategy()
.setMaximumPollSize()
.build();
All configurations are defined below:
Configuration | Default Value | Description |
---|---|---|
keyDeserializer |
N/A |
A fully qualified class name as String to deserialize key OR A instance of deserialize key. |
valueDeserializer |
N/A |
A fully qualified class name as String to deserialize value OR A instance of deserialize value. |
deliveryStrategy |
|
Strategy to handle consume and processing behavior. More details at Delivery Strategy. |
stream |
N/A |
The stream to consume records from. |
maximumPollSize |
100 |
Sets the number of messages to be retrieved by a single poll command. |