Package io.netty.channel.oio
Class OioEventLoopGroup
- java.lang.Object
-
- io.netty.util.concurrent.AbstractEventExecutorGroup
-
- io.netty.channel.ThreadPerChannelEventLoopGroup
-
- io.netty.channel.oio.OioEventLoopGroup
-
- All Implemented Interfaces:
EventLoopGroup
,EventExecutorGroup
,java.lang.Iterable<EventExecutor>
,java.util.concurrent.Executor
,java.util.concurrent.ExecutorService
,java.util.concurrent.ScheduledExecutorService
@Deprecated public class OioEventLoopGroup extends ThreadPerChannelEventLoopGroup
Deprecated.use NIO / EPOLL / KQUEUE transport.EventLoopGroup
which is used to handle OIOChannel
's. EachChannel
will be handled by its ownEventLoop
to not block others.
-
-
Constructor Summary
Constructors Constructor Description OioEventLoopGroup()
Deprecated.Create a newOioEventLoopGroup
with no limit in place.OioEventLoopGroup(int maxChannels)
Deprecated.Create a newOioEventLoopGroup
.OioEventLoopGroup(int maxChannels, java.util.concurrent.Executor executor)
Deprecated.Create a newOioEventLoopGroup
.OioEventLoopGroup(int maxChannels, java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a newOioEventLoopGroup
.
-
Method Summary
-
Methods inherited from class io.netty.channel.ThreadPerChannelEventLoopGroup
awaitTermination, isShutdown, isShuttingDown, isTerminated, iterator, newChild, next, register, register, register, shutdown, shutdownGracefully, terminationFuture
-
Methods inherited from class io.netty.util.concurrent.AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.util.concurrent.EventExecutorGroup
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
-
-
-
-
Constructor Detail
-
OioEventLoopGroup
public OioEventLoopGroup()
Deprecated.Create a newOioEventLoopGroup
with no limit in place.
-
OioEventLoopGroup
public OioEventLoopGroup(int maxChannels)
Deprecated.Create a newOioEventLoopGroup
.- Parameters:
maxChannels
- the maximum number of channels to handle with this instance. Once you try to register a newChannel
and the maximum is exceed it will throw anChannelException
on theThreadPerChannelEventLoopGroup.register(Channel)
andThreadPerChannelEventLoopGroup.register(ChannelPromise)
method. Use0
to use no limit
-
OioEventLoopGroup
public OioEventLoopGroup(int maxChannels, java.util.concurrent.Executor executor)
Deprecated.Create a newOioEventLoopGroup
.- Parameters:
maxChannels
- the maximum number of channels to handle with this instance. Once you try to register a newChannel
and the maximum is exceed it will throw anChannelException
on theThreadPerChannelEventLoopGroup.register(Channel)
andThreadPerChannelEventLoopGroup.register(ChannelPromise)
method. Use0
to use no limitexecutor
- theExecutor
used to create newThread
instances that handle the registeredChannel
s
-
OioEventLoopGroup
public OioEventLoopGroup(int maxChannels, java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a newOioEventLoopGroup
.- Parameters:
maxChannels
- the maximum number of channels to handle with this instance. Once you try to register a newChannel
and the maximum is exceed it will throw anChannelException
on theThreadPerChannelEventLoopGroup.register(Channel)
andThreadPerChannelEventLoopGroup.register(ChannelPromise)
method. Use0
to use no limitthreadFactory
- theThreadFactory
used to create newThread
instances that handle the registeredChannel
s
-
-