From: Kai Moritz Date: Sat, 28 Sep 2024 10:00:20 +0000 (+0200) Subject: `metadata.maxage.ms` auf 5 Sekunden heruntergesetzt X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e7aa6574516e35d7e2f585fd7e61a161cb1b7956;p=demos%2Fkafka%2Ftraining `metadata.maxage.ms` auf 5 Sekunden heruntergesetzt --- diff --git a/src/main/java/de/juplo/kafka/ExampleConsumer.java b/src/main/java/de/juplo/kafka/ExampleConsumer.java index c3b764f..b593216 100644 --- a/src/main/java/de/juplo/kafka/ExampleConsumer.java +++ b/src/main/java/de/juplo/kafka/ExampleConsumer.java @@ -37,6 +37,7 @@ public class ExampleConsumer props.put("partition.assignment.strategy", "org.apache.kafka.clients.consumer.CooperativeStickyAssignor"); props.put("key.deserializer", StringDeserializer.class.getName()); props.put("value.deserializer", StringDeserializer.class.getName()); + props.put("metadata.maxage.ms", 5000); this.id = clientId; this.topic = topic;