Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020年12月第1版 2020年12月第1次印刷 第1~3章内容建议 #22

Open
opencoder-cn opened this issue Feb 22, 2022 · 2 comments
Open

Comments

@opencoder-cn
Copy link

opencoder-cn commented Feb 22, 2022

  • 内容简介:JavaNIO修改为Java NIO
  • 21页:此外,还可利用新的传输实现没有写入的优势,只需替换一些构造器的调用方法即可参照官方原文(Also, you are even able to take advantage of new transports which aren't yet written (such as serial port communication transport), again by replacing just a couple lines of constructor calls. Moreover, you can write your own transport by extending the core API.)修改为此外,你甚至还可以利用尚未编写的新传输(例如串口通信传输),同样,只需替换几行构造函数调用即可
  • 22页:在本节,将研究参照官方原文(In this chapter, we will examine what core functionalities are provided in Netty and how they constitute a complete network application development stack on top of the core.)建议修改为在本节,我们将研究Netty提供了哪些核心功能,以及它们是如何在核心之上构成一个完整的网络应用程序开发技术栈的
  • 31页:这样,通过一个依赖就能适用到建议修改为使用到
  • 33页:现在仅仅只需要继承ChannelInboundHandlerAdapter建议修改为现在只需要继承ChannelInboundHandlerAdapter
  • 35页:可以通过option设置建议修改为可以通过option设置特定于Channel实现的参数
  • 43页:可以通过SelectionKey的selectedKeySet方法访问这些对象建议修改为可以通过Selector的selectedKeys方法访问这些对象
  • 44页:ChannelHandler的接口建议修改为ChannelHandler的方法
  • 47页:责任链模式会定义一个抽象处理器(Handler)角色,该角色对请求进行抽象建议修改为该角色对请求处理进行抽象,或者修改为该角色对请求进行处理
  • 48页:对于入栈的请求建议修改为对于入站的请求
  • 48页:图2-4图建议修改为图2-4
  • 52页:向下转型以下访问特定于传输的操作建议修改为向下转型以访问特定于传输的操作
  • 62页:ChannelInboundHandler.fireUserEventTriggered()方法修改为ChannelInboundInvoker.fireUserEventTriggered()方法
  • 65页:ChannelInboundHandlerAdapter是ChannelInboundHandler实现的抽象基类建议修改为ChannelInboundHandlerAdapter是实现了ChannelInboundHandler的适配器类
  • 66页:ChannelOutboundHandlerAdapter是ChannelOutboundHandler实现的抽象基类建议修改为ChannelOutboundHandlerAdapter是实现了ChannelOutboundHandler的适配器类
  • 74页:headContext修改为HeadContext,并是实现了修改为并且实现了
  • 76页:上述Write()方法修改为write()方法
  • 79页:ChannelHandlerContext可以通过参照ChannelHandlerContext源码注释(Enables a ChannelHandler to interact with its ChannelPipeline and other handlers. Among other things a handler can notify the next ChannelHandler in the ChannelPipeline as well as modify the ChannelPipeline it belongs to dynamically.)建议修改为一个处理器可以通知ChannelPipeline中的下一个ChannelHandler
  • 106页:被称为EmbeddedChannel类修改为被称为EmbeddedChannel的类
@opencoder-cn
Copy link
Author

另外建议对于一些依赖比较紧密的不容易理解的类,可以配套下对应的类图,可能会比较方便读者阅读

@waylau
Copy link
Owner

waylau commented Mar 3, 2022

@opencoder-cn

感谢反馈!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants