return null;
});
- while ()
+ while (infoChannel.loadInProgress())
+ {
+ log.info("InfoChannel is still loading...");
+ Thread.sleep(1000);
+ }
+
List<String> 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;
});
}