public abstract class MultithreadEventExecutorGroup extends Object implements EventExecutorGroup
| Modifier | Constructor and Description |
|---|---|
protected |
MultithreadEventExecutorGroup(int nThreads,
ThreadFactory threadFactory,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
Waits until
EventExecutorGroup.isTerminated() returns true or the specified amount of time
passes. |
boolean |
isShutdown()
Returns
true if and only if EventExecutorGroup.shutdown() has been called. |
boolean |
isTerminated()
Returns
true if and only if EventExecutorGroup.shutdown() has been called and all
EventExecutors managed by this group has been terminated completely. |
protected abstract EventExecutor |
newChild(ThreadFactory threadFactory,
ChannelTaskScheduler scheduler,
Object... args) |
EventExecutor |
next()
Returns one of the
EventExecutors that belong to this group. |
void |
shutdown()
Shuts down all
EventExecutors managed by this group. |
protected MultithreadEventExecutorGroup(int nThreads,
ThreadFactory threadFactory,
Object... args)
public EventExecutor next()
EventExecutorGroupEventExecutors that belong to this group.next in interface EventExecutorGroupprotected abstract EventExecutor newChild(ThreadFactory threadFactory, ChannelTaskScheduler scheduler, Object... args) throws Exception
Exceptionpublic void shutdown()
EventExecutorGroupEventExecutors managed by this group.shutdown in interface EventExecutorGroupExecutorService.shutdown()public boolean isShutdown()
EventExecutorGrouptrue if and only if EventExecutorGroup.shutdown() has been called.isShutdown in interface EventExecutorGroupExecutorService.isShutdown()public boolean isTerminated()
EventExecutorGrouptrue if and only if EventExecutorGroup.shutdown() has been called and all
EventExecutors managed by this group has been terminated completely.isTerminated in interface EventExecutorGroupExecutorService.isTerminated()public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
EventExecutorGroupEventExecutorGroup.isTerminated() returns true or the specified amount of time
passes.awaitTermination in interface EventExecutorGroupInterruptedExceptionExecutorService.awaitTermination(long, TimeUnit)Copyright © 2008-2012 The Netty Project. All Rights Reserved.