Top Description Constructors Methods
io.netty.channel.oio

public Class OioEventLoopGroup

extends ThreadPerChannelEventLoopGroup
Class Inheritance
Annotations
@Deprecated
Imports
io.netty.channel.Channel, .ChannelException, .ChannelPromise, .EventLoop, .EventLoopGroup, .ThreadPerChannelEventLoopGroup, java.util.concurrent.Executor, .ThreadFactory

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

AccessConstructor and Description
public
OioEventLoopGroup()

Create a new OioEventLoopGroup with no limit in place.

public
OioEventLoopGroup(int
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 on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit
maxChannels
)

Create a new OioEventLoopGroup.

public
OioEventLoopGroup(int
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 on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit
maxChannels
,
Executor
the Executor used to create new Thread instances that handle the registered Channels
executor
)

Create a new OioEventLoopGroup.

public
OioEventLoopGroup(int
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 on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit
maxChannels
,
ThreadFactory
the ThreadFactory used to create new Thread instances that handle the registered Channels
threadFactory
)

Create a new OioEventLoopGroup.

Method Summary

Inherited from io.netty.channel.ThreadPerChannelEventLoopGroup:
awaitTerminationisShutdownisShuttingDownisTerminatediteratornewChildnextregisterregisterregistershutdownshutdownGracefullyterminationFuture

Constructor Detail

OioEventLoopGroupback to summary
public OioEventLoopGroup()

Create a new OioEventLoopGroup with no limit in place.

OioEventLoopGroupback to summary
public OioEventLoopGroup(int maxChannels)

Create a new OioEventLoopGroup.

Parameters
maxChannels:int

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 on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit

OioEventLoopGroupback to summary
public OioEventLoopGroup(int maxChannels, Executor executor)

Create a new OioEventLoopGroup.

Parameters
maxChannels:int

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 on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit

executor:Executor

the Executor used to create new Thread instances that handle the registered Channels

OioEventLoopGroupback to summary
public OioEventLoopGroup(int maxChannels, ThreadFactory threadFactory)

Create a new OioEventLoopGroup.

Parameters
maxChannels:int

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 on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit

threadFactory:ThreadFactory

the ThreadFactory used to create new Thread instances that handle the registered Channels