wujimin commented on a change in pull request #731: [SCB-617] Graceful shutdown
with standalone tomcat
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/731#discussion_r192198103
##########
File path:
core/src/main/java/org/apache/servicecomb/core/executor/FixedThreadExecutor.java
##########
@@ -74,4 +76,11 @@ private Executor chooseExecutor(long threadId) {
int idx = index.getAndIncrement() % executorList.size();
return executorList.get(idx);
}
+
+ @Override
+ public void close() {
+ for (ExecutorService executorService : executorList) {
+ executorService.shutdown();
+ }
+ }
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services