Will JCSMPInboundChannelAdapter have configurable shutdownInterruptThresholdInMillis?
There is no awaiting for the termination and messages finish in the error queue.
Is there a better way to gracefully stop and resume? Will configuring shutdownInterruptThresholdInMillis help?
Answers
-
Hi @Julija,
I'm hoping to get a bit more info to get the the right answer. Can you elaborate on what you mean by this?
There is no awaiting for the termination and messages finish in the error queue.
Also, how are you triggering the graceful shutdown? Are you using/wanting to use one of these options or something else?
https://www.baeldung.com/spring-boot-shutdown
thank you!
0 -
hello @marc, sorry for the late response
Thanks for your reply. We have graceful shutdown but we are configuring further Kubernetes and Spring with additional properties. In addition we were wondering about shutdownInterruptThresholdInMillis
In the JCSMPInboundChannelAdapter, stopAllConsumers is awaiting termination awaitTermination for the hardcoded value shutdownInterruptThresholdInMillis . It is hardcoded to 500mills. Is it planned to be configurable?0