projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b729e
)
Fehler in Shutdown-Logik für den `ExecutorService` korrigiert
author
Kai Moritz
<kai@juplo.de>
Sat, 30 Apr 2022 09:36:13 +0000
(11:36 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sat, 30 Apr 2022 09:36:13 +0000
(11:36 +0200)
src/main/java/de/juplo/kafka/Application.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/Application.java
b/src/main/java/de/juplo/kafka/Application.java
index
6601e6d
..
b5bd1b9
100644
(file)
--- a/
src/main/java/de/juplo/kafka/Application.java
+++ b/
src/main/java/de/juplo/kafka/Application.java
@@
-46,12
+46,12
@@
public class Application implements ApplicationRunner
}
finally
{
- if (!executor.is
Shutdown
())
+ if (!executor.is
Terminated
())
{
log.warn("Forcing shutdown of ExecutorService!");
executor
.shutdownNow()
- .forEach(runnable -> log.warn("Un
finish
ed task: {}", runnable.getClass().getSimpleName()));
+ .forEach(runnable -> log.warn("Un
process
ed task: {}", runnable.getClass().getSimpleName()));
}
log.info("Shutdow of ExecutorService finished");
}