public class ReconnectHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| Modifier and Type | Field and Description |
|---|---|
AtomicLong |
delay |
long |
startTime |
org.jboss.netty.util.Timer |
timer |
TimeUnit |
unit |
| Constructor and Description |
|---|
ReconnectHandler(org.jboss.netty.bootstrap.ClientBootstrap bootstrap,
org.jboss.netty.util.Timer timer,
AtomicLong delay,
TimeUnit unit) |
ReconnectHandler(org.jboss.netty.bootstrap.ConnectionlessBootstrap bootstrap,
org.jboss.netty.util.Timer timer,
AtomicLong delay,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ExceptionEvent e) |
public final org.jboss.netty.util.Timer timer
public long startTime
public final AtomicLong delay
public final TimeUnit unit
public ReconnectHandler(org.jboss.netty.bootstrap.ClientBootstrap bootstrap,
org.jboss.netty.util.Timer timer,
AtomicLong delay,
TimeUnit unit)
public ReconnectHandler(org.jboss.netty.bootstrap.ConnectionlessBootstrap bootstrap,
org.jboss.netty.util.Timer timer,
AtomicLong delay,
TimeUnit unit)
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelDisconnected in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelConnected(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelConnected in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerCopyright © 2015. All rights reserved.