public static class NettyRPC.RPCHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Constructor and Description |
---|
RPCHandler(io.netty.util.concurrent.Promise<ProtoMessage> promise)
Creates an instance of
NettyRPC.RPCHandler . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptMessage(Object msg) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public RPCHandler(io.netty.util.concurrent.Promise<ProtoMessage> promise)
NettyRPC.RPCHandler
.promise
- the promisepublic void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
channelUnregistered
in interface io.netty.channel.ChannelInboundHandler
channelUnregistered
in class io.netty.channel.ChannelInboundHandlerAdapter
protected boolean acceptMessage(Object msg)
msg
- the messsageCopyright © 2023. All Rights Reserved.