Class NettyChannelInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- be.yildizgames.module.network.netty.NettyChannelInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public final class NettyChannelInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Pipeline factory to build a pipeline to use for netty transfer, every time a channel is initialized, the pipeline is filled with the handler provided by this class.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description NettyChannelInitializer(HandlerFactory factory)Create a new instance and register the handlers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitChannel(io.netty.channel.socket.SocketChannel ch)-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
NettyChannelInitializer
public NettyChannelInitializer(HandlerFactory factory)
Create a new instance and register the handlers.- Parameters:
factory- Create additional handler every time a channel is initialized.
-
-