]> juplo.de Git - demos/kafka/chat/commitdiff
WIP:refactor: Refined channel-states, introduced `ChannelState` -- ALIGN
authorKai Moritz <kai@juplo.de>
Mon, 4 Mar 2024 13:51:42 +0000 (14:51 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 4 Mar 2024 13:51:42 +0000 (14:51 +0100)
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/ConsumerTaskRunner.java

index c2c2801433d3ec29948ca22fb645c78134f6e78c..0c6de1d503219ff3ff5a3cfd01e0ed71ba380384 100644 (file)
@@ -21,9 +21,9 @@ public class ConsumerTaskRunner
   public void joinConsumerTasks() throws InterruptedException
   {
     dataChannelConsumerTaskExecutor.joinConsumerTaskJob();
-    while (infoChannel.isLoadInProgress())
+    while (infoChannel.getChannelState() != ChannelState.SHUTTING_DOWN)
     {
-      log.info("Waiting for {} to finish loading...", infoChannel);
+      log.info("Waiting for {} to shut down...", infoChannel);
       Thread.sleep(1000);
     }
     infoChannelConsumerTaskExecutor.joinConsumerTaskJob();