public final class CompressionHandler
extends io.netty.handler.codec.MessageToMessageCodec<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf>
| Constructor and Description |
|---|
CompressionHandler(int threshold)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg,
List<Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg,
List<Object> out) |
acceptInboundMessage, acceptOutboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic CompressionHandler(int threshold)
threshold - the smallest message length, in bytes, to compressCopyright © 2021. All rights reserved.