From d381e7a04945f18e0adfc41496eea638708f0c81 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 18 Aug 2023 16:29:23 +0200 Subject: [PATCH] NG --- .../kafka/KafkaServicesApplicationRunner.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesApplicationRunner.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesApplicationRunner.java index d0166c56..653e3660 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesApplicationRunner.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesApplicationRunner.java @@ -27,14 +27,11 @@ public class KafkaServicesApplicationRunner implements ApplicationRunner @Autowired ConfigurableApplicationContext context; - @Autowired - Consumer chatRoomChannelConsumer; @Autowired ChatMessageChannel chatMessageChannel; @Autowired Consumer chatMessageChannelConsumer; - CompletableFuture chatRoomChannelConsumerJob; CompletableFuture chatMessageChannelConsumerJob; @@ -51,16 +48,6 @@ public class KafkaServicesApplicationRunner implements ApplicationRunner }); } - @PreDestroy - public void joinChatRoomChannelConsumerJob() - { - log.info("Signaling the consumer of the CahtRoomChannel to quit its work"); - chatRoomChannelConsumer.wakeup(); - log.info("Waiting for the consumer of the ChatRoomChannel to finish its work"); - chatRoomChannelConsumerJob.join(); - log.info("Joined the consumer of the ChatRoomChannel"); - } - @PreDestroy public void joinChatMessageChannelConsumerJob() { -- 2.20.1