From 746f4549fbe3aecb2ed3b2930289f5cc4a5efe85 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 13 Sep 2023 20:41:59 +0200 Subject: [PATCH] WIP --- .../kafka/KafkaServicesApplicationRunner.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java index f6e39b35..efcbe490 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java @@ -63,15 +63,20 @@ public class KafkaServicesApplicationRunner implements ApplicationRunner return null; }); - while () + while (infoChannel.loadInProgress()) + { + log.info("InfoChannel is still loading..."); + Thread.sleep(1000); + } + List topics = List.of(properties.getKafka().getDataChannelTopic()); dataChannelConsumer.subscribe(topics, dataChannel); - log.info("Starting the consumer for the ChatRoomChannel"); + log.info("Starting the consumer for the DataChannel"); dataChannelConsumerJob = taskExecutor .submitCompletable(dataChannel) .exceptionally(e -> { - log.error("The consumer for the ChatRoomChannel exited abnormally!", e); + log.error("The consumer for the DataChannel exited abnormally!", e); return null; }); } -- 2.20.1