Package com.tenio.network.netty.datagram
Class NettyDatagramInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
-
- com.tenio.network.netty.datagram.NettyDatagramInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public final class NettyDatagramInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
This class for initializing a channel.- Author:
- kong
-
-
Constructor Summary
Constructors Constructor Description NettyDatagramInitializer(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.DatagramChannel channel)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Constructor Detail
-
NettyDatagramInitializer
public NettyDatagramInitializer(int index, IEventManager eventManager, GlobalTrafficShapingHandlerCustomize trafficCounter, BaseConfiguration configuration)
-
-