public class RpcServiceHandler extends io.netty.channel.SimpleChannelInboundHandler<RpcDataPackage>
| 构造器和说明 |
|---|
RpcServiceHandler(RpcServiceRegistry rpcServiceRegistry,
ExceptionCatcher exceptionCatcher)
Instantiates a new rpc service handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
RpcDataPackage dataPackage) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
setEs(ExecutorService es)
Sets the es.
|
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic RpcServiceHandler(RpcServiceRegistry rpcServiceRegistry, ExceptionCatcher exceptionCatcher)
rpcServiceRegistry - the rpc service registryexceptionCatcher - the exception catcherpublic void setEs(ExecutorService es)
es - the new esprotected 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.