七万号·数据平台实战手记

Back

EventLoopGroup#

EventLoopGroup 如名是EventLoop的Group 用于管理EventLoop。EventLoopGroup可以理解为一个线程池,其中的线程(EventLoop)负责处理事件和任务。

selectable#

full param group and new task queue#

delay await cancel#

Channel#

Channel是网络传输中的实体,它代表了一个开放的连接,可以进行数据的读写操作。

channel init#

Scheduling#

ByteBuf#

ByteBuf作为java NIO中ByteBuffer的Netty版,其语义与ByteBuffer相同,只是操作方式更加丰富

基本操作#

ByteProcess#

UnPooled#

ByteToMessage,MessageToByte,MessageToMessage#

串行的数据流的编码解码

ByteToMessage#

MessageToMessage#

Replaying#

Codec#

关于netty那些不得不说的故事
https://realcpf.tech/blog/the-netty
Author 刘佳成
Published at 2024年1月4日