手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Netty 4.0 正式版发布,高性能网络服务框架

[日期:2013-07-16] 来源:oschina.net  作者:Linux [字体:大 中 小]

超过一年的开发时间,历经 9 个 RC 版本,Netty 4.0 正式版发布!!!

如果你是 RC9 或者之前版本的用户,在升级之前还需要先看看这个变化:MessageList 移除了!

相关的改动

  • ChannelInboundHandler.channelReadSuspended() has been replaced by channelReadComplete() introduced above, because they are essentially same.
  • Because MessageList is gone, codec framework now uses List<Object> instead of MessageList as an output parameter.

其他改动

  • UnpooledByteBufAllocator is the default allocator. We suspect there might be a leak in the PooledByteBufAllocator. Until the investigation is complete and any bugs found are fixed, we are defaulting to UnpooledByteBufAllocator.
  • ByteBuf is now an abstract class rather than an interface. I found that converting ByteBuf from an interface to an abstract class gives the nice performance boost of around 5%. Hence ByteBuf was converted to an abstract class.
  • Channel.id() has been removed. It was practically impossible to generate a unique ID of a Channel with the new API because there is no way to manage the global map of the taken IDs

完整的内容请看 here

Netty 的详细介绍:请点这里
Netty 的下载地址:请点这里

linux
相关资讯       Netty 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款