public class RpcClientServiceHandler extends io.netty.channel.SimpleChannelInboundHandler<RpcDataPackage>
| 构造器和说明 |
|---|
RpcClientServiceHandler(RpcClient rpcClient)
Instantiates a new rpc client service handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
RpcDataPackage dataPackage) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic RpcClientServiceHandler(RpcClient rpcClient)
rpcClient - the rpc clientprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
RpcDataPackage dataPackage)
throws Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<RpcDataPackage>Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2022 Baidu, Inc.. All rights reserved.