public class ReconnectHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
AtomicLong |
delay |
long |
startTime |
TimeUnit |
unit |
| Constructor and Description |
|---|
ReconnectHandler(io.netty.bootstrap.Bootstrap bootstrap,
io.netty.channel.group.ChannelGroup channels,
AtomicLong delay,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e) |
channelInactive, channelRead, channelReadComplete, channelRegistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic long startTime
public final AtomicLong delay
public final TimeUnit unit
public ReconnectHandler(io.netty.bootstrap.Bootstrap bootstrap,
io.netty.channel.group.ChannelGroup channels,
AtomicLong delay,
TimeUnit unit)
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered in interface io.netty.channel.ChannelInboundHandlerchannelUnregistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2022. All rights reserved.