Class ExecutorUtil

    • Method Detail

      • isShutdown

        public static boolean isShutdown​(Executor executor)
        Returns true if and only if the specified executor is an ExecutorService and is shut down. Please note that this method returns false if the specified executor is not an ExecutorService.
      • terminate

        public static void terminate​(Executor... executors)
        Shuts down the specified executors.
      • terminate

        public static void terminate​(ThreadLocal<Executor> deadLockChecker,
                                     Executor... executors)
        Shuts down the specified executors using the given ThreadLocal to check if there is a deadlock