org.jboss.netty.util.internal
类 ExecutorUtil

java.lang.Object
  继承者 org.jboss.netty.util.internal.ExecutorUtil

public class ExecutorUtil
extends java.lang.Object

Shuts down a list of Executors. terminate(Executor...) will shut down all specified ExecutorServices immediately and wait for their termination. An Executor which is not an ExecutorService will be ignored silently.


方法摘要
static boolean isShutdown(java.util.concurrent.Executor executor)
          Returns true if and only if the specified executor is an ExecutorService and is shut down.
static void terminate(java.util.concurrent.Executor... executors)
          Shuts down the specified executors.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

isShutdown

public static boolean isShutdown(java.util.concurrent.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(java.util.concurrent.Executor... executors)
Shuts down the specified executors.