摘要: 接下来,我们看到的就是两个非常重要的方法 就是 processSelectedKeys() 和 runAllTasks() 方法了。 selectionKey中ready的事件,如accept、connect、read、write等,由processSelectedKeys方法触发。属于I/O任务。 阅读全文
posted @ 2019-07-04 00:07 Diligent_Watermelon 阅读(886) 评论(0) 推荐(0) 编辑