aboutsummaryrefslogtreecommitdiff
path: root/server-core/src/main/java/com/juick/util
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-15 00:03:59 +0700
committerGravatar Vitaly Takmazov2016-11-15 09:49:27 +0300
commit32a6feb195171e06d60117ad758cc8beb50e5ca3 (patch)
tree7e3c72fe408861e8d828f181a46816e1b200993f /server-core/src/main/java/com/juick/util
parent73a2b1d4796ea18ef476f4ca30e2028c828d0ac1 (diff)
Constructor injectection for service layer
Diffstat (limited to 'server-core/src/main/java/com/juick/util')
-rw-r--r--server-core/src/main/java/com/juick/util/ThreadHelper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server-core/src/main/java/com/juick/util/ThreadHelper.java b/server-core/src/main/java/com/juick/util/ThreadHelper.java
index 7304d158..64a56f7c 100644
--- a/server-core/src/main/java/com/juick/util/ThreadHelper.java
+++ b/server-core/src/main/java/com/juick/util/ThreadHelper.java
@@ -21,6 +21,7 @@ public class ThreadHelper {
try {
// Wait a while for existing tasks to terminate
if (!pool.awaitTermination(5, TimeUnit.SECONDS)) {
+ logger.info("Calls shutDownNow for pool");
pool.shutdownNow(); // Cancel currently executing tasks
// Wait a while for tasks to respond to being cancelled
if (!pool.awaitTermination(5, TimeUnit.SECONDS))