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-03--15-10~37 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1640b65c740c561e65eed51ebcb5567346efd58c;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); -}