一文聊透Netty IO事件的编排利器pipeline |详解所有IO事件(二)
2.1HeadContextprivatestaticfinalStringHEADNAMEgenerateName0(HeadContext.class);finalclassHeadContextextendsAbstractChannelHandlerContextimplementsChannelOutboundHandler,ChannelInboundHandler{headContext中持有对channelunsafe操作类的引用用于执行channel底层操作privatefinalUnsafeunsafe;HeadContext(DefaultChannelPipelinepipeline){super(pipeline,null,HEADNAME,HeadContext.class);持有channelunsafe操作...