public class NettyCompressionEncoder
extends io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
| Modifier and Type | Field and Description | 
|---|---|
| private byte[] | buffer | 
| private java.util.zip.Deflater | deflater | 
| private int | treshold | 
| Constructor and Description | 
|---|
| NettyCompressionEncoder(int treshold) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
      io.netty.buffer.ByteBuf p_encode_2_,
      io.netty.buffer.ByteBuf p_encode_3_) | 
| void | setCompressionTreshold(int treshold) | 
acceptOutboundMessage, allocateBuffer, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharableprivate final byte[] buffer
private final java.util.zip.Deflater deflater
private int treshold
protected void encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
                      io.netty.buffer.ByteBuf p_encode_2_,
                      io.netty.buffer.ByteBuf p_encode_3_)
               throws java.lang.Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>java.lang.Exceptionpublic void setCompressionTreshold(int treshold)