// Hence, the app would not react to any signal (CTRL-C, for example) except
// a KILL until the restoring is finished.
future = CompletableFuture.runAsync(() -> start());
+ log.info("start of application completed");
}
{
if (running)
{
- log.info("already running!");
+ log.info("consumer already running!");
return "Already running!";
}
running = true;
future = CompletableFuture.runAsync(this);
- log.info("started");
+ log.info("consumer started");
return "Started";
}
{
if (!running)
{
- log.info("not running!");
+ log.info("consumer not running!");
return "Not running";
}
consumer.unsubscribe();
}
- log.info("stopped");
+ log.info("consumer stopped");
return "Stopped";
}