@ChannelHandler.Sharable
public class NettyChannelHandler
extends io.netty.channel.SimpleChannelInboundHandler<dev.keva.protocol.resp.Command>
| Constructor and Description |
|---|
NettyChannelHandler(CommandMapper commandMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
dev.keva.protocol.resp.Command command) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharable@Autowired public NettyChannelHandler(CommandMapper commandMapper)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
dev.keva.protocol.resp.Command command)
throws java.lang.InterruptedException
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<dev.keva.protocol.resp.Command>java.lang.InterruptedExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt)
throws java.lang.Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exception