Vorlage
[demos/kafka/training] / src / main / java / de / juplo / kafka / SimpleConsumer.java
index 45f9b94..8e557c2 100644 (file)
@@ -18,7 +18,7 @@ public class SimpleConsumer implements Callable<Integer>
 {
   private final String id;
   private final String topic;
-  private final Consumer<String, Message> consumer;
+  private final Consumer<String, String> consumer;
 
   private long consumed = 0;
 
@@ -33,11 +33,11 @@ public class SimpleConsumer implements Callable<Integer>
 
       while (true)
       {
-        ConsumerRecords<String, Message> records =
+        ConsumerRecords<String, String> records =
             consumer.poll(Duration.ofSeconds(1));
 
         log.info("{} - Received {} messages", id, records.count());
-        for (ConsumerRecord<String, Message> record : records)
+        for (ConsumerRecord<String, String> record : records)
         {
           handleRecord(
             record.topic(),