diff --git a/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java b/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java index 465ec95e3..e30893021 100644 --- a/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java +++ b/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java @@ -28,7 +28,7 @@ public final class ExecutorUtil { - public static ExecutorService newSingleFixedThreadPool(String name) { + public static ExecutorService newFixedThreadPool(String name) { return newFixedThreadPool(1, name); } @@ -39,8 +39,7 @@ public static ExecutorService newFixedThreadPool(int size, String name) { return Executors.newFixedThreadPool(size, factory); } - public static ScheduledExecutorService newSingleScheduledThreadPool( - String name) { + public static ScheduledExecutorService newScheduledThreadPool(String name) { return newScheduledThreadPool(1, name); }