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:
fb0b7f6
)
Der Producer zählt statt der gesendeten Nachrichten die in der Queue
grundlagen/simple-producer
grundlagen/simple-producer--2025-03-18--19-42
grundlagen/simple-producer--2025-03-signal
grundlagen/simple-producer--2025-04-signal
author
Kai Moritz
<kai@juplo.de>
Fri, 14 Mar 2025 15:49:04 +0000
(16:49 +0100)
committer
Kai Moritz
<kai@juplo.de>
Fri, 14 Mar 2025 15:50:25 +0000
(16:50 +0100)
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
b4051fb
..
0bab442
100644
(file)
--- a/
src/main/java/de/juplo/kafka/ExampleProducer.java
+++ b/
src/main/java/de/juplo/kafka/ExampleProducer.java
@@
-77,7
+77,6
@@
public class ExampleProducer
if (e == null)
{
// HANDLE SUCCESS
- produced++;
log.debug(
"{} - Sent message {}={}, partition={}, offset={}, timestamp={}, latency={}ms",
id,
@@
-104,6
+103,7
@@
public class ExampleProducer
});
long now = System.currentTimeMillis();
+ produced++;
log.trace(
"{} - Queued message {}={}, latency={}ms",
id,