refactor: Moved `ShardingStrategy` into package `persistence` -- MOVE
authorKai Moritz <kai@juplo.de>
Wed, 6 Sep 2023 21:35:35 +0000 (23:35 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 6 Sep 2023 22:27:48 +0000 (00:27 +0200)
src/main/java/de/juplo/kafka/chat/backend/persistence/ShardingStrategy.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/ShardingStrategy.java [deleted file]

diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/ShardingStrategy.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/ShardingStrategy.java
new file mode 100644 (file)
index 0000000..da75863
--- /dev/null
@@ -0,0 +1,9 @@
+package de.juplo.kafka.chat.backend.persistence.inmemory;
+
+import java.util.UUID;
+
+
+public interface ShardingStrategy
+{
+  int selectShard(UUID chatRoomId);
+}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/ShardingStrategy.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/ShardingStrategy.java
deleted file mode 100644 (file)
index da75863..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-package de.juplo.kafka.chat.backend.persistence.inmemory;
-
-import java.util.UUID;
-
-
-public interface ShardingStrategy
-{
-  int selectShard(UUID chatRoomId);
-}