类 ExecutorUtil
- java.lang.Object
-
- com.alibaba.dubbo.common.utils.ExecutorUtil
-
public class ExecutorUtil extends Object
-
-
构造器概要
构造器 构造器 说明 ExecutorUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static void
gracefulShutdown(Executor executor, int timeout)
Use the shutdown pattern from: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.htmlstatic boolean
isTerminated(Executor executor)
static URL
setThreadName(URL url, String defaultName)
append thread name with url addressstatic void
shutdownNow(Executor executor, int timeout)
-
-
-
方法详细资料
-
isTerminated
public static boolean isTerminated(Executor executor)
-
gracefulShutdown
public static void gracefulShutdown(Executor executor, int timeout)
Use the shutdown pattern from: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html- 参数:
executor
- the Executor to shutdowntimeout
- the timeout in milliseconds before termination
-
shutdownNow
public static void shutdownNow(Executor executor, int timeout)
-
-