Benennung der neuen fachlichen Klassen verbessert
authorKai Moritz <kai@juplo.de>
Wed, 6 Apr 2022 06:45:57 +0000 (08:45 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 6 Apr 2022 17:46:59 +0000 (19:46 +0200)
src/main/java/de/juplo/kafka/EndlessConsumer.java
src/main/java/de/juplo/kafka/KeyCounter.java

index e3a60b5..c7bc852 100644 (file)
@@ -83,7 +83,7 @@ public class EndlessConsumer implements Runnable
               log.info(
                   "{} - Seen {} messages for partition={}|key={}",
                   id,
-                  counter.getCounter(),
+                  counter.getResult(),
                   removed.getPartition(),
                   counter.getKey());
             }
index 147dcd4..b2cde47 100644 (file)
@@ -14,11 +14,11 @@ public class KeyCounter
 {
   private final String key;
 
-  private long counter = 0;
+  private long result = 0;
 
 
   public long increment()
   {
-    return ++counter;
+    return ++result;
   }
 }