摘要: 一、创建 selector Selector selector = Selector.open(); 1、一个 selector 可以管理多个 channel 。 二、channel 如何注册到 selector 中 (建立关联关系,使 selector 能够监测到 channel 发生的事件) / 阅读全文
posted @ 2021-07-20 22:23 舟 阅读(483) 评论(0) 推荐(1) 编辑