import de.juplo.kafka.chat.backend.domain.Message;
import lombok.RequiredArgsConstructor;
import org.apache.kafka.common.TopicPartition;
+import reactor.core.publisher.Mono;
+
+import java.time.LocalDateTime;
@RequiredArgsConstructor
private final TopicPartition tp;
@Override
- public MessageHandlingStrategy handleMessage(Message message)
+ public Mono<Message> handleMessage(
+ Message.MessageKey key,
+ LocalDateTime timestamp,
+ String text)
{
- KafkaChatHomeService.log.warn("Not handling message {} for partition {}", message, tp);
- return this;
+ throw new
}
}