You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/04/30 17:55:37 UTC
[GitHub] [camel-k-runtime] ToWipf commented on issue #224: [quarkus] support stopping the application
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:
users@infra.apache.org