com.fastchar.socket.server.core.FastSocketChannelInitializer Maven / Gradle / Ivy
package com.fastchar.socket.server.core;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
/**
* @author 沈建(Janesen)
* @date 2021/3/31 09:30
*/
class FastSocketChannelInitializer extends ChannelInitializer {
@Override
protected void initChannel(SocketChannel socketChannel) throws Exception {
ChannelPipeline pipeline = socketChannel.pipeline();
pipeline.addLast("FastSocketChooseHandler", new FastSocketChooseHandler());
}
}