WIP
authorKai Moritz <kai@juplo.de>
Fri, 16 Sep 2022 17:25:03 +0000 (19:25 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 16 Sep 2022 17:25:03 +0000 (19:25 +0200)
src/main/java/de/juplo/kafka/Application.java

index 69a9712..d913823 100644 (file)
@@ -1,6 +1,7 @@
 package de.juplo.kafka;
 
 import lombok.extern.slf4j.Slf4j;
+import org.apache.kafka.clients.consumer.Consumer;
 import org.apache.kafka.common.serialization.ByteArraySerializer;
 import org.apache.kafka.common.serialization.StringSerializer;
 import org.springframework.boot.SpringApplication;
@@ -53,12 +54,14 @@ public class Application
       ApplicationRecordHandler recordHandler,
       AdderResults adderResults,
       StateRepository stateRepository,
+      Consumer<String, Message> kafkaConsumer,
       KafkaProperties kafkaProperties)
   {
     return new ApplicationRebalanceListener(
         recordHandler,
         adderResults,
         stateRepository,
+        kafkaConsumer,
         kafkaProperties.getConsumer().getGroupId());
   }