1 package de.juplo.kafka.chat.backend.persistence.kafka;
3 import de.juplo.kafka.chat.backend.domain.Message;
4 import de.juplo.kafka.chat.backend.domain.ShardNotOwnedException;
5 import lombok.RequiredArgsConstructor;
6 import org.apache.kafka.common.TopicPartition;
7 import reactor.core.publisher.Mono;
9 import java.time.LocalDateTime;
12 @RequiredArgsConstructor
13 class ChatroomInactiveMessageHandlingStrategy implements MessageHandlingStrategy
15 private final int shard;
18 public Mono<Message> handleMessage(
19 Message.MessageKey key,
20 LocalDateTime timestamp,
23 throw new ShardNotOwnedException(shard);