WIP
authorKai Moritz <kai@juplo.de>
Fri, 17 Feb 2023 18:12:27 +0000 (19:12 +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 [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/NoOpMessageHandlingStrategy.java [deleted file]

diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatroomInactiveMessageHandlingStrategy.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatroomInactiveMessageHandlingStrategy.java
new file mode 100644 (file)
index 0000000..430d6ef
--- /dev/null
@@ -0,0 +1,19 @@
+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;
+
+
+@RequiredArgsConstructor
+class ChatroomInactiveMessageHandlingStrategy implements MessageHandlingStrategy
+{
+  private final TopicPartition tp;
+
+  @Override
+  public MessageHandlingStrategy handleMessage(Message message)
+  {
+    KafkaChatHomeService.log.warn("Not handling message {} for partition {}", message, tp);
+    return this;
+  }
+}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/NoOpMessageHandlingStrategy.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/NoOpMessageHandlingStrategy.java
deleted file mode 100644 (file)
index c25418a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-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;
-
-
-@RequiredArgsConstructor
-class NoOpMessageHandlingStrategy implements MessageHandlingStrategy
-{
-  private final TopicPartition tp;
-
-  @Override
-  public MessageHandlingStrategy handleMessage(Message message)
-  {
-    KafkaChatHomeService.log.warn("Not handling message {} for partition {}", message, tp);
-    return this;
-  }
-}