Class ZstdOptions
- java.lang.Object
-
- io.netty.handler.codec.compression.ZstdOptions
-
- All Implemented Interfaces:
CompressionOptions
public class ZstdOptions extends java.lang.Object implements CompressionOptions
ZstdOptionsholds compressionLevel for Zstd compression.
-
-
Field Summary
Fields Modifier and Type Field Description private intblockSizeprivate intcompressionLevel(package private) static ZstdOptionsDEFAULTDefault implementation ofZstdOptionswith{compressionLevel(int)} set toZstdConstants.DEFAULT_COMPRESSION_LEVEL,ZstdConstants.DEFAULT_BLOCK_SIZE,ZstdConstants.DEFAULT_MAX_ENCODE_SIZEprivate intmaxEncodeSize
-
Constructor Summary
Constructors Constructor Description ZstdOptions(int compressionLevel, int blockSize, int maxEncodeSize)Create a newZstdOptions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intblockSize()intcompressionLevel()intmaxEncodeSize()
-
-
-
Field Detail
-
blockSize
private final int blockSize
-
compressionLevel
private final int compressionLevel
-
maxEncodeSize
private final int maxEncodeSize
-
DEFAULT
static final ZstdOptions DEFAULT
Default implementation ofZstdOptionswith{compressionLevel(int)} set toZstdConstants.DEFAULT_COMPRESSION_LEVEL,ZstdConstants.DEFAULT_BLOCK_SIZE,ZstdConstants.DEFAULT_MAX_ENCODE_SIZE
-
-
Constructor Detail
-
ZstdOptions
ZstdOptions(int compressionLevel, int blockSize, int maxEncodeSize)Create a newZstdOptions- Parameters:
blockSize- is used to calculate the compressionLevelmaxEncodeSize- specifies the size of the largest compressed objectcompressionLevel- specifies the level of the compression
-
-