From: Kai Moritz Date: Wed, 6 Sep 2023 21:35:35 +0000 (+0200) Subject: refactor: Moved `ShardingStrategy` into package `persistence` -- MOVE X-Git-Tag: rebase--2024-02-20--15-07~68 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=458a214ea4cc6a5a84e2ae455499c944aa47f145;p=demos%2Fkafka%2Fchat refactor: Moved `ShardingStrategy` into package `persistence` -- MOVE --- 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 index 00000000..da758635 --- /dev/null +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/ShardingStrategy.java @@ -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 index da758635..00000000 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/ShardingStrategy.java +++ /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); -}