本文整理了Java中org.eclipse.jgit.util.FS.shutdownAndAwaitTermination()
方法的一些代码示例,展示了FS.shutdownAndAwaitTermination()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FS.shutdownAndAwaitTermination()
方法的具体详情如下:
包路径:org.eclipse.jgit.util.FS
类名称:FS
方法名:shutdownAndAwaitTermination
[英]Shuts down an ExecutorService in two phases, first by calling ExecutorService#shutdown() to reject incoming tasks, and then calling ExecutorService#shutdownNow(), if necessary, to cancel any lingering tasks. Returns true if the pool has been properly shutdown, false otherwise.
[中]分两个阶段关闭ExecutorService,首先调用ExecutorService#shutdown()拒绝传入的任务,然后调用ExecutorService#shutdownNow()(如有必要)取消任何延迟的任务。如果池已正确关闭,则返回true,否则返回false。
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
ioException = e;
} finally {
shutdownAndAwaitTermination(executor);
if (process != null) {
try {
代码示例来源:origin: sonia.jgit/org.eclipse.jgit
ioException = e;
} finally {
shutdownAndAwaitTermination(executor);
if (process != null) {
try {
代码示例来源:origin: berlam/github-bucket
ioException = e;
} finally {
shutdownAndAwaitTermination(executor);
if (process != null) {
try {
内容来源于网络,如有侵权,请联系作者删除!