类 ExecutorUtil


  • public class ExecutorUtil
    extends 
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static void  executor, int timeout)
      Use the shutdown pattern from: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html
      static boolean  executor)  
      static URL setThreadName​(URL url,  defaultName)
      append thread name with url address
      static void  executor, int timeout)  
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 构造器详细资料

      • ExecutorUtil

        public ExecutorUtil()
    • 方法详细资料

      • isTerminated

        public static boolean isTerminated​( executor)
      • gracefulShutdown

        public static void gracefulShutdown​( 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 shutdown
        timeout - the timeout in milliseconds before termination
      • shutdownNow

        public static void shutdownNow​( executor,
                                       int timeout)
      • setThreadName

        public static URL setThreadName​(URL url,
                                         defaultName)
        append thread name with url address
        返回:
        new url with updated thread name