|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.netty.util.internal.ExecutorUtil
public class ExecutorUtil
Shuts down a list of Executor
s. terminate(Executor...)
will
shut down all specified ExecutorService
s immediately and wait for
their termination. An Executor
which is not an ExecutorService
will be ignored silently.
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 |
---|
public static boolean isShutdown(Executor executor)
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
.
public static void terminate(Executor... executors)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |