org.jboss.netty.util.internal
Class ExecutorUtil

java.lang.Object
  extended by org.jboss.netty.util.internal.ExecutorUtil

public class ExecutorUtil
extends 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.

Version:
$Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
Author:
The Netty Project, Trustin Lee

Method Summary
static boolean isShutdown(Executor executor)
          Returns true if and only if the specified executor is an ExecutorService and is shut down.
static void terminate(Executor... executors)
          Shuts down the specified executors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.