59917091016be833ad694a1c5aec3279d6e6755e
[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.RequiredArgsConstructor;
5 import lombok.extern.slf4j.Slf4j;
6 import org.springframework.web.reactive.function.client.WebClient;
7 import reactor.core.publisher.Mono;
8
9 import java.net.URI;
10
11
12 @RequiredArgsConstructor
13 @Slf4j
14 public class HaproxyShardingPublisherStrategy implements ShardingPublisherStrategy
15 {
16   private final String instanceId;
17   private final WebClient webClient;
18
19
20   @Override
21   public Mono<String> publishOwnership(int shard)
22   {
23     return Mono.error(new RuntimeException("TODO"));
24   }
25 }