bootstrap.connect().sync(); //直到连接返回,才会退出当前线程
future.channel().closeFuture().sync() //直到channel关闭,才会退出当前线程
Netty的Sync
猜你喜欢
转载自blog.csdn.net/wyl530274554/article/details/102488376
今日推荐
周排行