refactor: Renamed method in `InfoChannel` according to conventions
authorKai Moritz <kai@juplo.de>
Sat, 3 Feb 2024 14:13:09 +0000 (15:13 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 09:28:35 +0000 (10:28 +0100)
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/ConsumerTaskRunner.java
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/InfoChannel.java

index 983ebd3..c2c2801 100644 (file)
@@ -21,7 +21,7 @@ public class ConsumerTaskRunner
   public void joinConsumerTasks() throws InterruptedException
   {
     dataChannelConsumerTaskExecutor.joinConsumerTaskJob();
-    while (infoChannel.loadInProgress())
+    while (infoChannel.isLoadInProgress())
     {
       log.info("Waiting for {} to finish loading...", infoChannel);
       Thread.sleep(1000);
index cf4d03c..3429d40 100644 (file)
@@ -68,7 +68,7 @@ public class InfoChannel implements Runnable
   }
 
 
-  boolean loadInProgress()
+  boolean isLoadInProgress()
   {
     return IntStream
         .range(0, numShards)