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--2023-09-13--21-01~29 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=28550d0efea2edb7f1d051991dbcd97540af91ea;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); -}