public class OioEventLoopGroup extends ThreadPerChannelEventLoopGroup
EventLoopGroup这是用来处理OIO Channel的。
每Channel将由其自己的EventLoop处理,以不阻止其他人。
| Constructor and Description |
|---|
OioEventLoopGroup()
创建一个没有限制的新的 OioEventLoopGroup 。
|
OioEventLoopGroup(int maxChannels)
创建一个新的 OioEventLoopGroup 。
|
OioEventLoopGroup(int maxChannels, java.util.concurrent.Executor executor)
创建一个新的 OioEventLoopGroup 。
|
OioEventLoopGroup(int maxChannels, java.util.concurrent.ThreadFactory threadFactory)
创建一个新的 OioEventLoopGroup 。
|
awaitTermination, isShutdown, isShuttingDown, isTerminated, iterator, newChild, next, register, register, register, shutdown, shutdownGracefully, terminationFutureexecute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitschedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitpublic OioEventLoopGroup()
OioEventLoopGroup 。
public OioEventLoopGroup(int maxChannels)
OioEventLoopGroup 。
maxChannels - 此实例处理的最大通道数。
一旦你尝试注册一个新Channel ,最高为超过它会抛出一个ChannelException对ThreadPerChannelEventLoopGroup.register(Channel)和ThreadPerChannelEventLoopGroup.register(ChannelPromise)方法。
使用0不限制
public OioEventLoopGroup(int maxChannels,
java.util.concurrent.Executor executor)
OioEventLoopGroup 。
maxChannels - 此实例处理的最大通道数。
一旦你尝试注册一个新Channel ,最高为超过它会抛出一个ChannelException对ThreadPerChannelEventLoopGroup.register(Channel)和ThreadPerChannelEventLoopGroup.register(ChannelPromise)方法。
使用0不限制
executor - Executor用于创建处理注册的Channel s的新的Thread实例
public OioEventLoopGroup(int maxChannels,
java.util.concurrent.ThreadFactory threadFactory)
OioEventLoopGroup 。
maxChannels - 此实例处理的最大通道数。
一旦你尝试注册一个新的Channel ,并且最大值超过,它将在ThreadPerChannelEventLoopGroup.register(Channel)和ThreadPerChannelEventLoopGroup.register(ChannelPromise)方法上抛出一个ChannelException 。
使用0不限制
threadFactory - ThreadFactory用于创建处理注册的Channel s的新的Thread实例
Copyright © 2008–2018 The Netty Project. All rights reserved.