949104a66af30917a3073b9c231cc7a553cc2dff
[demos/kafka/chat] /
1 package de.juplo.kafka.chat.backend.implementation.haproxy;
2
3 import de.juplo.kafka.chat.backend.domain.ShardingPublisherStrategy;
4 import lombok.Getter;
5 import lombok.extern.slf4j.Slf4j;
6 import org.springframework.web.reactive.function.client.WebClient;
7 import reactor.core.publisher.Mono;
8
9
10 @Slf4j
11 public class HaproxyDataPlaneApiShardingPublisherStrategy implements ShardingPublisherStrategy
12 {
13   @Getter
14   private final int mapId;
15
16
17   public HaproxyDataPlaneApiShardingPublisherStrategy(
18       WebClient webClient,
19       String mapPath,
20       String instanceId)
21   {
22     this.mapId = 0;
23   }
24
25
26   @Override
27   public Mono<String> publishOwnership(int shard)
28   {
29     return Mono.empty();
30   }
31 }