public static class TcpWorker.TcpChannelHandler
extends org.jboss.netty.channel.SimpleChannelHandler
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasCaughtException
The has caught exception.
|
| Constructor and Description |
|---|
TcpChannelHandler(TcpWorker tcpWorker)
Instantiates a new tcp channel handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
Why not use channelClosed: if fail to establish a channel
(e.g.
|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
bindRequested, channelBound, channelClosed, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic TcpChannelHandler(TcpWorker tcpWorker)
tcpWorker - the tcp workerpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
messageReceived in class org.jboss.netty.channel.SimpleChannelHandlerpublic void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelDisconnected in class org.jboss.netty.channel.SimpleChannelHandlerctx - the ctxe - the eException - the exceptionpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught in class org.jboss.netty.channel.SimpleChannelHandlerCopyright © 2015–2017 eBay. All rights reserved.