Vorlage
authorKai Moritz <kai@juplo.de>
Fri, 1 Apr 2022 13:32:41 +0000 (15:32 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 1 Apr 2022 13:32:41 +0000 (15:32 +0200)
src/main/java/de/juplo/kafka/EndlessConsumer.java

index b3dd446..b64a95e 100644 (file)
@@ -68,24 +68,7 @@ public class EndlessConsumer implements Runnable
 
       while (true)
       {
-        ConsumerRecords<String, String> records =
-            consumer.poll(Duration.ofSeconds(1));
-
-        // Do something with the data...
-        log.info("{} - Received {} messages", id, records.count());
-        for (ConsumerRecord<String, String> record : records)
-        {
-          consumed++;
-          log.info(
-              "{} - {}: {}/{} - {}={}",
-              id,
-              record.offset(),
-              record.topic(),
-              record.partition(),
-              record.key(),
-              record.value()
-          );
-        }
+        // TODO: Nachrichten abrufen und verarbeiten
       }
     }
     catch(WakeupException e)