From: Kai Moritz Date: Fri, 18 Aug 2023 14:29:23 +0000 (+0200) Subject: NG X-Git-Tag: rebase--2023-08-18-abends~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=d381e7a04945f18e0adfc41496eea638708f0c81;p=demos%2Fkafka%2Fchat NG --- 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() {