正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
netty-action-heartbeat/src/main/java/com/crossoverjie/netty/action/handle/HeartBeatSimpleHandle.java
| @@ -44,6 +44,10 @@ public class HeartBeatSimpleHandle extends SimpleChannelInboundHandler<CustomPro | @@ -44,6 +44,10 @@ public class HeartBeatSimpleHandle extends SimpleChannelInboundHandler<CustomPro | ||
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | @Override | 46 | @Override |
| 47 | + public void channelActive(ChannelHandlerContext ctx) throws Exception { | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + @Override | ||
| 47 | protected void channelRead0(ChannelHandlerContext ctx, CustomProtocol customProtocol) throws Exception { | 51 | protected void channelRead0(ChannelHandlerContext ctx, CustomProtocol customProtocol) throws Exception { |
| 48 | LOGGER.info("customProtocol={}", customProtocol); | 52 | LOGGER.info("customProtocol={}", customProtocol); |
| 49 | 53 |
-
请 注册 或 登录 后发表评论