| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private ByteBuf | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ZstdEncoder(int
is used to calculate the compressionLevel blockSize, int specifies the size of the largest compressed object maxEncodeSize)Creates a new Zstd encoder. |
| public | ZstdEncoder(int
specifies the level of the compression compressionLevel, int is used to calculate the compressionLevel blockSize, int specifies the size of the largest compressed object maxEncodeSize)
|
| blockSize | back to summary |
|---|---|
| private final int blockSize | |
| buffer | back to summary |
|---|---|
| private ByteBuf buffer | |
| compressionLevel | back to summary |
|---|---|
| private final int compressionLevel | |
| maxEncodeSize | back to summary |
|---|---|
| private final int maxEncodeSize | |
| ZstdEncoder | back to summary |
|---|---|
| public ZstdEncoder() Creates a new Zstd encoder.
Please note that if you use the default constructor, the default BLOCK_SIZE and MAX_BLOCK_SIZE
will be used. If you want to specify BLOCK_SIZE and MAX_BLOCK_SIZE yourself,
please use | |
| ZstdEncoder | back to summary |
|---|---|
| public ZstdEncoder(int compressionLevel) Creates a new Zstd encoder.
| |
| ZstdEncoder | back to summary |
|---|---|
| public ZstdEncoder(int blockSize, int maxEncodeSize) Creates a new Zstd encoder.
| |
| ZstdEncoder | back to summary |
|---|---|
public ZstdEncoder(int compressionLevel, int blockSize, int maxEncodeSize)
| |
| allocateBuffer | back to summary |
|---|---|
| protected ByteBuf allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) Overrides io. Doc from io. Allocate a
| |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) Implements abstract io. Doc from io. Encode a message into a
| |
| flush | back to summary |
|---|---|
| public void flush(final ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| flushBufferedData | back to summary |
|---|---|
| private void flushBufferedData(ByteBuf out) | |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Gets called after the
| |