|Constructor and Description|
Creates a new decoder with no additional data (TLV) restrictions
Creates a new decoder with restricted additional data (TLV) size Note: limiting TLV size only affects processing of v2, binary headers.
|Modifier and Type||Method and Description|
Decode the from one
actualReadableBytes, callDecode, channelInactive, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, setCumulator, setSingleDecode
bind, channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, isSharable, read, userEventTriggered, write
public HAProxyMessageDecoder(int maxTlvSize)
Note: limiting TLV size only affects processing of v2, binary headers. Also, as allowed by the 1.5 spec
TLV data is currently ignored. For maximum performance it would be best to configure your upstream proxy host to
NOT send TLV data and instantiate with a max TLV size of
maxTlvSize- maximum number of bytes allowed for additional data (Type-Length-Value vectors) in a v2 header
public boolean isSingleDecode()
truethen only one message is decoded on each
ByteToMessageDecoder.channelRead(ChannelHandlerContext, Object)call. Default is
falseas this has performance impacts.
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
ChannelHandlerContext.fireChannelRead(Object)to forward to the next
ChannelPipeline. Sub-classes may override this method to change behavior.
protected final void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception
ByteBufto an other. This method will be called till either the input
ByteBufhas nothing to read when return from this method or till nothing was read from the input
Copyright © 2008–2015 The Netty Project. All rights reserved.