public interface EventExecutorGroup
EventExecutorGroup is responsible to provide EventExecutor's to use via its
next() method. Beside this it also is responsible to handle their live-cycle and allows
to shut them down in a global fashion.| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
Waits until
isTerminated() returns true or the specified amount of time
passes. |
boolean |
isShutdown()
Returns
true if and only if shutdown() has been called. |
boolean |
isTerminated()
Returns
true if and only if shutdown() has been called and all
EventExecutors managed by this group has been terminated completely. |
EventExecutor |
next()
Returns one of the
EventExecutors that belong to this group. |
void |
shutdown()
Shuts down all
EventExecutors managed by this group. |
EventExecutor next()
EventExecutors that belong to this group.void shutdown()
EventExecutors managed by this group.ExecutorService.shutdown()boolean isShutdown()
true if and only if shutdown() has been called.ExecutorService.isShutdown()boolean isTerminated()
true if and only if shutdown() has been called and all
EventExecutors managed by this group has been terminated completely.ExecutorService.isTerminated()boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
isTerminated() returns true or the specified amount of time
passes.InterruptedExceptionExecutorService.awaitTermination(long, TimeUnit)Copyright © 2008-2012 The Netty Project. All Rights Reserved.