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
,AutoCloseable
,Iterable<EventExecutor>
,Executor
,ExecutorService
,ScheduledExecutorService
Deprecated.
use NIO / EPOLL / KQUEUE transport.
EventLoopGroup
which is used to handle OIO Channel
's. Each Channel
will be handled by its
own EventLoop
to not block others.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newOioEventLoopGroup
with no limit in place.OioEventLoopGroup
(int maxChannels) Deprecated.Create a newOioEventLoopGroup
.OioEventLoopGroup
(int maxChannels, Executor executor) Deprecated.Create a newOioEventLoopGroup
.OioEventLoopGroup
(int maxChannels, 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
Methods inherited from interface java.util.concurrent.ExecutorService
close, invokeAll, invokeAll, invokeAny, invokeAny
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
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
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
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
-