Update apache-kafka-2/src/main/java/com/baeldung/kafka/message/ordering/ConsumerConfigurations.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
d408db30f2
commit
f2a69a8bb1
|
@ -18,7 +18,7 @@ public class ConsumerConfigurations {
|
|||
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.StringDeserializer");
|
||||
props.put("max.poll.records", "500");
|
||||
props.put("fetch.min.bytes", "1");
|
||||
props.put("fetch.max.wait.ms", "500");
|
||||
props.put(ConsumerConfig.FETCH_MAX_WAIT_MS_CONFIG, "500");
|
||||
Consumer<String, String> consumer = new KafkaConsumer<>(props);
|
||||
consumer.subscribe(Collections.singletonList("multi_partition_topic"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue