@ChannelHandler.Sharable public class FrameEncoderLZ4 extends FrameEncoder
FrameDecoderLZ4
for description of the framing produced by this encoder.FrameEncoder.Payload, FrameEncoder.PayloadAllocator
Modifier and Type | Field and Description |
---|---|
static FrameEncoderLZ4 |
fastInstance |
static int |
HEADER_AND_TRAILER_LENGTH |
bufferPool
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
encode(boolean isSelfContained,
java.nio.ByteBuffer in)
Takes ownership of the lifetime of the provided buffer, which can be assumed to be managed by BufferPool
|
allocator, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public static final FrameEncoderLZ4 fastInstance
public static final int HEADER_AND_TRAILER_LENGTH
public io.netty.buffer.ByteBuf encode(boolean isSelfContained, java.nio.ByteBuffer in)
FrameEncoder
Copyright © 2009-2021 The Apache Software Foundation