public class OioEventLoopGroup extends ThreadPerChannelEventLoopGroup
EventLoopGroup
which is used to handle OIO Channel
's. Each Channel
will be handled by its
own EventLoop
to not block others.Constructor and Description |
---|
OioEventLoopGroup()
Create a new
OioEventLoopGroup with no limit in place. |
OioEventLoopGroup(int maxChannels)
Create a new
OioEventLoopGroup . |
OioEventLoopGroup(int maxChannels,
Executor executor)
Create a new
OioEventLoopGroup . |
OioEventLoopGroup(int maxChannels,
ThreadFactory threadFactory)
Create a new
OioEventLoopGroup . |
awaitTermination, children, isShutdown, isShuttingDown, isTerminated, newChild, next, register, register, shutdown, shutdownGracefully, terminationFuture
close, execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
invokeAll, invokeAll, invokeAny, invokeAny
close
public OioEventLoopGroup()
OioEventLoopGroup
with no limit in place.public OioEventLoopGroup(int maxChannels)
OioEventLoopGroup
.maxChannels
- the maximum number of channels to handle with this instance. Once you try to register
a new Channel
and the maximum is exceed it will throw an
ChannelException
. Use 0
to use no limitpublic OioEventLoopGroup(int maxChannels, Executor executor)
OioEventLoopGroup
.maxChannels
- the maximum number of channels to handle with this instance. Once you try to register
a new Channel
and the maximum is exceed it will throw an
ChannelException
. Use 0
to use no limitexecutor
- the Executor
used to create new Thread
instances that handle the
registered Channel
spublic OioEventLoopGroup(int maxChannels, ThreadFactory threadFactory)
OioEventLoopGroup
.maxChannels
- the maximum number of channels to handle with this instance. Once you try to register
a new Channel
and the maximum is exceed it will throw an
ChannelException
. Use 0
to use no limitthreadFactory
- the ThreadFactory
used to create new Thread
instances that handle the
registered Channel
sCopyright © 2008–2015 The Netty Project. All rights reserved.