mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-07-06 14:57:52 +08:00
NIO线程格式
This commit is contained in:
@@ -41,8 +41,8 @@ public class TcpListener extends Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void tcpServerBootstrap(TcpCfg tcpCfg) throws InterruptedException {
|
private void tcpServerBootstrap(TcpCfg tcpCfg) throws InterruptedException {
|
||||||
bossGroup = new NioEventLoopGroup(tcpCfg.getBossGroupThreadCount(), JCPPThreadFactory.forName("tcp-boss"));
|
bossGroup = new NioEventLoopGroup(tcpCfg.getBossGroupThreadCount(), JCPPThreadFactory.forName("tcp-boss-%d"));
|
||||||
workerGroup = new NioEventLoopGroup(tcpCfg.getWorkerGroupThreadCount(), JCPPThreadFactory.forName("tcp-worker"));
|
workerGroup = new NioEventLoopGroup(tcpCfg.getWorkerGroupThreadCount(), JCPPThreadFactory.forName("tcp-worker-%d"));
|
||||||
|
|
||||||
ChannelHandlerInitializer<SocketChannel> channelHandler = ChannelHandlerInitializer.createTcpChannelHandler(tcpCfg, parameter);
|
ChannelHandlerInitializer<SocketChannel> channelHandler = ChannelHandlerInitializer.createTcpChannelHandler(tcpCfg, parameter);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user