public class RpcServerDefaultHandler
extends io.netty.channel.SimpleChannelInboundHandler<com.alibaba.fastjson.JSONObject>
not @Sharable: stateful handler can not be sharable!
see https://my.oschina.net/xinxingegeya/blog/295577
| 构造器和说明 |
|---|
RpcServerDefaultHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
com.alibaba.fastjson.JSONObject untRequestOrResponse) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
com.alibaba.fastjson.JSONObject untRequestOrResponse)
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<com.alibaba.fastjson.JSONObject>public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapter