public class TcpHandler
extends org.jboss.netty.channel.SimpleChannelHandler
| Modifier and Type | Field and Description |
|---|---|
ExceptionReporter |
exceptionReporter |
IOException |
lastError |
AtomicInteger |
maxInflightRequests |
WriteQueue |
queue |
| Constructor and Description |
|---|
TcpHandler(ExceptionReporter exceptionReporter,
AtomicInteger maxInflightRequests) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelOpen(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) |
void |
handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.MessageEvent e) |
bindRequested, channelBound, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic final WriteQueue queue
public final AtomicInteger maxInflightRequests
public volatile IOException lastError
public final ExceptionReporter exceptionReporter
public TcpHandler(ExceptionReporter exceptionReporter, AtomicInteger maxInflightRequests)
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelOpen in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void channelConnected(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelConnected in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void channelClosed(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e)
throws Exception
handleDownstream in interface org.jboss.netty.channel.ChannelDownstreamHandlerhandleDownstream in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.MessageEvent e)
messageReceived in class org.jboss.netty.channel.SimpleChannelHandlerpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext c,
org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught in class org.jboss.netty.channel.SimpleChannelHandlerCopyright © 2014. All rights reserved.