Package com.tenio.network.netty.socket
Class NettySocketInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- com.tenio.network.netty.socket.NettySocketInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public final class NettySocketInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
This class for initializing a channel.- Author:
- kong
-
-
Constructor Summary
Constructors Constructor Description NettySocketInitializer(int index, IEventManager eventManager, GlobalTrafficShapingHandlerCustomize trafficCounter, BaseConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initChannel(io.netty.channel.socket.SocketChannel channel)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Constructor Detail
-
NettySocketInitializer
public NettySocketInitializer(int index, IEventManager eventManager, GlobalTrafficShapingHandlerCustomize trafficCounter, BaseConfiguration configuration)
-
-