| | |
| | | private EventLoopGroup work = new NioEventLoopGroup(); |
| | | |
| | | @Value("netty.port") |
| | | private Integer port; |
| | | private String port; |
| | | |
| | | /** |
| | | * 启动Netty Server |
| | |
| | | // 指定Channel |
| | | .channel(NioServerSocketChannel.class) |
| | | //使用指定的端口设置套接字地址 |
| | | .localAddress(new InetSocketAddress(port)) |
| | | .localAddress(new InetSocketAddress(Integer.parseInt(port))) |
| | | |
| | | //服务端可连接队列数,对应TCP/IP协议listen函数中backlog参数 |
| | | .option(ChannelOption.SO_BACKLOG, 1024) |
| | |
| | | discovery: |
| | | heart-beat-interval: 3000 |
| | | heart-beat-timeout: 15000 |
| | | group: pipe |
| | | group: supipe |
| | | config: |
| | | file-extension: yml |
| | | group: sunacos |