From: Kai Moritz Date: Wed, 13 Sep 2023 18:41:59 +0000 (+0200) Subject: WIP X-Git-Tag: rebase--2023-09-13--21-01~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=746f4549fbe3aecb2ed3b2930289f5cc4a5efe85;p=demos%2Fkafka%2Fchat WIP --- 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; }); }