From: Kai Moritz Date: Wed, 6 Apr 2022 06:45:57 +0000 (+0200) Subject: Benennung der neuen fachlichen Klassen verbessert X-Git-Tag: offset-endpoint~6 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=149fa27c8d1fd65c4b9510ff34ae44b11529e549;p=demos%2Fkafka%2Ftraining Benennung der neuen fachlichen Klassen verbessert --- diff --git a/src/main/java/de/juplo/kafka/EndlessConsumer.java b/src/main/java/de/juplo/kafka/EndlessConsumer.java index e3a60b5..c7bc852 100644 --- a/src/main/java/de/juplo/kafka/EndlessConsumer.java +++ b/src/main/java/de/juplo/kafka/EndlessConsumer.java @@ -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()); } diff --git a/src/main/java/de/juplo/kafka/KeyCounter.java b/src/main/java/de/juplo/kafka/KeyCounter.java index 147dcd4..b2cde47 100644 --- a/src/main/java/de/juplo/kafka/KeyCounter.java +++ b/src/main/java/de/juplo/kafka/KeyCounter.java @@ -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; } }