projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5724a
)
`metadata.maxage.ms` auf 5 Sekunden heruntergesetzt
author
Kai Moritz
<kai@juplo.de>
Sat, 28 Sep 2024 10:00:20 +0000
(12:00 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 29 Sep 2024 07:45:24 +0000
(09:45 +0200)
src/main/java/de/juplo/kafka/ExampleConsumer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/ExampleConsumer.java
b/src/main/java/de/juplo/kafka/ExampleConsumer.java
index
1715813
..
710f45a
100644
(file)
--- a/
src/main/java/de/juplo/kafka/ExampleConsumer.java
+++ b/
src/main/java/de/juplo/kafka/ExampleConsumer.java
@@
-33,6
+33,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;