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:
29f4c8d
)
`metadata.maxage.ms` auf 5 Sekunden heruntergesetzt
author
Kai Moritz
<kai@juplo.de>
Sat, 28 Sep 2024 09:58:11 +0000
(11:58 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sat, 28 Sep 2024 09:58:11 +0000
(11:58 +0200)
src/main/java/de/juplo/kafka/ExampleProducer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/ExampleProducer.java
b/src/main/java/de/juplo/kafka/ExampleProducer.java
index
06e14ef
..
a629c64
100644
(file)
--- a/
src/main/java/de/juplo/kafka/ExampleProducer.java
+++ b/
src/main/java/de/juplo/kafka/ExampleProducer.java
@@
-27,6
+27,7
@@
public class ExampleProducer
props.put("client.id", clientId); // Nur zur Wiedererkennung
props.put("key.serializer", StringSerializer.class.getName());
props.put("value.serializer", StringSerializer.class.getName());
+ props.put("metadata.maxage.ms", 5000);
this.id = clientId;
this.topic = topic;