Class OioEventLoopGroup
java.lang.Object
io.netty.util.concurrent.AbstractEventExecutorGroup
io.netty.channel.ThreadPerChannelEventLoopGroup
io.netty.channel.oio.OioEventLoopGroup
- All Implemented Interfaces:
EventLoopGroup, EventExecutorGroup, 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 newOioEventLoopGroupwith 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 ThreadPerChannelEventLoopGroup
awaitTermination, isShutdown, isShuttingDown, isTerminated, iterator, newChild, next, register, register, register, shutdown, shutdownGracefully, terminationFutureMethods inherited from class AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EventExecutorGroup
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit, tickerMethods inherited from interface ExecutorService
invokeAll, invokeAll, invokeAny, invokeAnyMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
OioEventLoopGroup
-
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 newChanneland the maximum is exceed it will throw anChannelExceptionon theThreadPerChannelEventLoopGroup.register(Channel)andThreadPerChannelEventLoopGroup.register(ChannelPromise)method. Use0to 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 newChanneland the maximum is exceed it will throw anChannelExceptionon theThreadPerChannelEventLoopGroup.register(Channel)andThreadPerChannelEventLoopGroup.register(ChannelPromise)method. Use0to use no limitexecutor- theExecutorused to create newThreadinstances that handle the registeredChannels
-
OioEventLoopGroup
Deprecated.Create a newOioEventLoopGroup.- Parameters:
maxChannels- the maximum number of channels to handle with this instance. Once you try to register a newChanneland the maximum is exceed it will throw anChannelExceptionon theThreadPerChannelEventLoopGroup.register(Channel)andThreadPerChannelEventLoopGroup.register(ChannelPromise)method. Use0to use no limitthreadFactory- theThreadFactoryused to create newThreadinstances that handle the registeredChannels
-