public class HttpPipeliningHandler
extends io.netty.channel.ChannelDuplexHandler
| Constructor | Description |
|---|---|
HttpPipeliningHandler(org.apache.logging.log4j.Logger logger,
int maxEventsHeld) |
Construct a new pipelining handler; this handler should be used downstream of HTTP decoding/aggregation.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg) |
|
void |
close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
|
void |
write(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg,
io.netty.channel.ChannelPromise promise) |
bind, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemovedensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic HttpPipeliningHandler(org.apache.logging.log4j.Logger logger,
int maxEventsHeld)
logger - for logging unexpected errorsmaxEventsHeld - the maximum number of channel events that will be retained prior to aborting the channel connection; this is
required as events cannot queue up indefinitelypublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg)
throws java.lang.Exception
channelRead in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg,
io.netty.channel.ChannelPromise promise)
throws java.lang.Exception
write in class io.netty.channel.ChannelDuplexHandlerjava.lang.Exceptionpublic void close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
throws java.lang.Exception
close in class io.netty.channel.ChannelDuplexHandlerjava.lang.Exception