public class OioEventLoopGroup extends Object implements EventLoopGroup
| Constructor and Description |
|---|
OioEventLoopGroup() |
OioEventLoopGroup(int maxChannels) |
OioEventLoopGroup(int maxChannels,
ThreadFactory threadFactory) |
| 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. |
EventLoop |
next()
Return the next
EventLoop to use |
ChannelFuture |
register(Channel channel)
|
ChannelFuture |
register(Channel channel,
ChannelFuture future)
|
void |
shutdown()
Shuts down all
EventExecutors managed by this group. |
public OioEventLoopGroup()
public OioEventLoopGroup(int maxChannels)
public OioEventLoopGroup(int maxChannels,
ThreadFactory threadFactory)
public EventLoop next()
EventLoopGroupEventLoop to usenext in interface EventExecutorGroupnext in interface EventLoopGrouppublic 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)public ChannelFuture register(Channel channel)
EventLoopGroupChannel with this EventLoop. The returned ChannelFuture
will get notified once the registration was complete.register in interface EventLoopGrouppublic ChannelFuture register(Channel channel, ChannelFuture future)
EventLoopGroupChannel with this EventLoop. The passed ChannelFuture
will get notified once the registration was complete and also will get returned.register in interface EventLoopGroupCopyright © 2008-2012 The Netty Project. All Rights Reserved.