public class NettyCompressionEncoder
extends io.netty.handler.codec.MessageToByteEncoder
| Constructor and Description |
|---|
NettyCompressionEncoder(int treshold) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compress(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf input,
io.netty.buffer.ByteBuf output) |
protected void |
encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
java.lang.Object p_encode_2_,
io.netty.buffer.ByteBuf p_encode_3_) |
void |
setCompressionTreshold(int treshold) |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharableprotected void compress(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf input,
io.netty.buffer.ByteBuf output)
public void setCompressionTreshold(int treshold)
protected void encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
java.lang.Object p_encode_2_,
io.netty.buffer.ByteBuf p_encode_3_)
encode in class io.netty.handler.codec.MessageToByteEncoder