What is the difference between netty(io.netty.*) and jboss netty(org.jboss.netty.*)
来源:互联网 发布:软件与电子信息工程师 编辑:程序博客网 时间:2024/06/05 08:49
First, in Netty 3.X the packages were from org.jboss.netty.* see: http://netty.io/3.10/api/index.html,
But started Netty 4.X the packeages are from io.netty.* see: http://netty.io/4.0/api/index.html
Now, if you are using Netty 4.X to read message use the method
ChannelRead(ChannelHandleContext ctx, Object msg) { ... }
inherited from ChannelInboundHandlerAdapter class.
The method:
messageReceived(ChannelHandlerContext, I) { ...}
was used in Netty 3.X version.
EDIT: Adding @trustin (developer of Netty) comment,
channelRead0 is from SimpleChannelInboundHandler of 4.x, and it will be renamed to messageReceived in Netty 5.
Hope it helps.
阅读全文
0 0
- What is the difference between netty(io.netty.*) and jboss netty(org.jboss.netty.*)
- jboss netty
- Jboss .netty项目使用的netty包详解之 org.jboss.netty.handler.codec.base64
- Netty
- Netty
- Netty
- Netty
- Netty
- Netty
- netty
- netty
- netty
- Netty
- Netty
- Netty
- Netty
- netty
- Netty
- 记录一下:Date、String、Long三种日期类型之间的相互转换
- VSCrawler 爬取美女图片
- Eclipse+webservice简单实例搭建
- iOS开发学习笔记(一)
- 关于SpringMVC,Web.xml监听器是否必须
- What is the difference between netty(io.netty.*) and jboss netty(org.jboss.netty.*)
- 调用face++ sdk实现人脸识别
- java多线程之synchronized
- NYOJ-7-街区最短路径问题
- 【Leetcode】111. Minimum Depth of Binary Tree
- Android中Context详解 ---- 你所不知道的Context
- linux下卸载samba组件
- MySQL压测sysbench/tpcc
- SOSOAPI前后端分离开发模式下的接口测试