WIP
authorKai Moritz <kai@juplo.de>
Sun, 26 Feb 2023 14:13:55 +0000 (15:13 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 26 Feb 2023 14:35:29 +0000 (15:35 +0100)
src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatroomInactiveMessageHandlingStrategy.java

index 430d6ef..892da90 100644 (file)
@@ -3,6 +3,9 @@ package de.juplo.kafka.chat.backend.persistence.kafka;
 import de.juplo.kafka.chat.backend.domain.Message;
 import lombok.RequiredArgsConstructor;
 import org.apache.kafka.common.TopicPartition;
+import reactor.core.publisher.Mono;
+
+import java.time.LocalDateTime;
 
 
 @RequiredArgsConstructor
@@ -11,9 +14,11 @@ class ChatroomInactiveMessageHandlingStrategy implements MessageHandlingStrategy
   private final TopicPartition tp;
 
   @Override
-  public MessageHandlingStrategy handleMessage(Message message)
+  public Mono<Message> handleMessage(
+      Message.MessageKey key,
+      LocalDateTime timestamp,
+      String text)
   {
-    KafkaChatHomeService.log.warn("Not handling message {} for partition {}", message, tp);
-    return this;
+    throw new 
   }
 }