package de.juplo.kafka.chat.backend.implementation.kafka;
import de.juplo.kafka.chat.backend.implementation.kafka.messages.AbstractMessageTo;
-import jakarta.annotation.PreDestroy;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
});
}
- @PreDestroy
public void join()
{
log.info("Signaling the consumer-task for {} to quit its work", channel);
dataChannelTaskExecutor);
}
- @Bean
+ @Bean(destroyMethod = "join")
ChannelTaskExecutor infoChannelTaskExecutor(
ThreadPoolTaskExecutor taskExecutor,
InfoChannel infoChannel,
};
}
- @Bean
+ @Bean(destroyMethod = "join")
ChannelTaskExecutor dataChannelTaskExecutor(
ThreadPoolTaskExecutor taskExecutor,
DataChannel dataChannel,