RÜCKBAU für Rebase der Folge-Branches
authorKai Moritz <kai@juplo.de>
Fri, 14 Mar 2025 15:50:09 +0000 (16:50 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 17 Mar 2025 15:58:03 +0000 (16:58 +0100)
src/main/java/de/juplo/kafka/ExampleProducer.java

index c5a5a80..25e885d 100644 (file)
@@ -94,6 +94,7 @@ public class ExampleProducer implements Runnable
       if (e == null)
       {
         // HANDLE SUCCESS
+        produced++;
         log.debug(
           "{} - Sent message {}={}, partition={}, offset={}, timestamp={}, latency={}ms",
           id,
@@ -120,7 +121,6 @@ public class ExampleProducer implements Runnable
     });
 
     long now = System.currentTimeMillis();
-    produced++;
     log.trace(
       "{} - Queued message {}={}, latency={}ms",
       id,