public class HttpPipeliningHandler
extends org.jboss.netty.channel.SimpleChannelHandler
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_EVENTS_HELD |
Constructor and Description |
---|
HttpPipeliningHandler(int maxEventsHeld) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxEventsHeld() |
void |
handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
public static final int INITIAL_EVENTS_HELD
public HttpPipeliningHandler(int maxEventsHeld)
maxEventsHeld
- the maximum number of channel events that will be retained prior to aborting the channel
connection. This is required as events cannot queue up indefinitely; we would run out of
memory if this was the case.public int getMaxEventsHeld()
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
messageReceived
in class org.jboss.netty.channel.SimpleChannelHandler
public void handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelEvent e) throws java.lang.Exception
handleDownstream
in interface org.jboss.netty.channel.ChannelDownstreamHandler
handleDownstream
in class org.jboss.netty.channel.SimpleChannelHandler
java.lang.Exception