@ChannelHandler.Sharable public class NettyConnectionHandler extends io.netty.channel.ChannelInboundHandlerAdapter implements ConnectionHandler
| Constructor and Description |
|---|
NettyConnectionHandler(NettyConnectionClient connectionClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
onGoAway(Object channel) |
void |
reconnect(Object channel) |
channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic NettyConnectionHandler(NettyConnectionClient connectionClient)
public void onGoAway(Object channel)
onGoAway in interface ConnectionHandlerpublic void reconnect(Object channel)
reconnect in interface ConnectionHandlerpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.