public class UptimeClientHandler extends SimpleChannelUpstreamHandler
ChannelHandler.Sharable
构造器和说明 |
---|
UptimeClientHandler(ClientBootstrap bootstrap,
Timer timer) |
限定符和类型 | 方法和说明 |
---|---|
void |
channelClosed(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel was closed and all its related resources
were released. |
void |
channelConnected(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel is open, bound to a local address, and
connected to a remote address. |
void |
channelDisconnected(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel was disconnected from its remote peer. |
void |
exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler . |
channelBound, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, messageReceived, writeComplete
public UptimeClientHandler(ClientBootstrap bootstrap, Timer timer)
public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandler
Channel
was disconnected from its remote peer.public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandler
Channel
was closed and all its related resources
were released.public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandler
Channel
is open, bound to a local address, and
connected to a remote address.
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
SimpleChannelUpstreamHandler
ChannelHandler
.