水星的随笔

  日常生活博客
首页 我的开源我的开源 标签墙 存档 友链 RSS
  • 首页
  • 我的开源我的开源
  • 标签墙
  • 存档
  • 友链
  • RSS

channelhandle的生命周期

2022-05-19   |   0 评论   |   0 浏览

背景

新建连接

handlerAdded() –> channelRegistered() –> channelActive()

连接完成

channelRead() –> channelReadComplete()

关闭连接

channelInactive() –> channelUnregistered() –> handlerRemoved()

https://upload-images.jianshu.io/upload_images/11870810-4b77cf7bc810ddd3.png

参考

  1. channelhandle的生命周期
java
旧一篇
新一篇

  • 背景
  • 新建连接
  • 连接完成
  • 关闭连接
  • 参考
© 2024 水星的随笔