ToWipf commented on issue #224:
URL: https://github.com/apache/camel-k-runtime/issues/224#issuecomment-622008382


   Is this a good way to stop the application?
   ```
        private boolean bShutdown = false;
   
        @Override
        public int run(String... args) throws Exception {
                LOGGER.info("start");
                while (true) {
                        Thread.sleep(1000);
                        if (bShutdown) {
                                LOGGER.info("stop");
                                return 0;
                        }
                }
        }
   
        public void stopApp() {
                this.bShutdown = true;
        }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to