refactor: Renamed `ShardingStrategy` for HAProxy Runtime API -- ALIGN
authorKai Moritz <kai@juplo.de>
Sun, 17 Mar 2024 21:01:08 +0000 (22:01 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 22 Mar 2024 16:39:20 +0000 (17:39 +0100)
src/main/java/de/juplo/kafka/chat/backend/implementation/haproxy/HaproxyRuntimeApiShardingPublisherStrategy.java
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesConfiguration.java

index ad71d49..5147606 100644 (file)
@@ -12,7 +12,7 @@ import java.nio.channels.SocketChannel;
 
 @RequiredArgsConstructor
 @Slf4j
-public class HaproxyShardingPublisherStrategy implements ShardingPublisherStrategy
+public class HaproxyRuntimeApiShardingPublisherStrategy implements ShardingPublisherStrategy
 {
   private final SocketAddress haproxyAddress;
   private final String map;
index 58e1117..d9e85b4 100644 (file)
@@ -2,7 +2,7 @@ package de.juplo.kafka.chat.backend.implementation.kafka;
 
 import de.juplo.kafka.chat.backend.ChatBackendProperties;
 import de.juplo.kafka.chat.backend.domain.ShardingPublisherStrategy;
-import de.juplo.kafka.chat.backend.implementation.haproxy.HaproxyShardingPublisherStrategy;
+import de.juplo.kafka.chat.backend.implementation.haproxy.HaproxyRuntimeApiShardingPublisherStrategy;
 import de.juplo.kafka.chat.backend.implementation.kafka.messages.AbstractMessageTo;
 import de.juplo.kafka.chat.backend.implementation.kafka.messages.data.EventChatMessageReceivedTo;
 import de.juplo.kafka.chat.backend.implementation.kafka.messages.info.EventChatRoomCreated;
@@ -299,7 +299,7 @@ public class KafkaServicesConfiguration
   {
     String[] parts = properties.getKafka().getHaproxyRuntimeApi().split(":");
     InetSocketAddress haproxyAddress = new InetSocketAddress(parts[0], Integer.valueOf(parts[1]));
-    return new HaproxyShardingPublisherStrategy(
+    return new HaproxyRuntimeApiShardingPublisherStrategy(
         haproxyAddress,
         properties.getKafka().getHaproxyMap(),
         properties.getInstanceId());