Class ZstdOptions
java.lang.Object
io.netty.handler.codec.compression.ZstdOptions
- All Implemented Interfaces:
CompressionOptions
ZstdOptions holds compressionLevel for
Zstd compression.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final int(package private) static final ZstdOptionsDefault implementation ofZstdOptionswith{compressionLevel(int)} set toZstdConstants.DEFAULT_COMPRESSION_LEVEL,ZstdConstants.DEFAULT_BLOCK_SIZE,ZstdConstants.DEFAULT_MAX_ENCODE_SIZEprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionZstdOptions(int compressionLevel, int blockSize, int maxEncodeSize) Create a newZstdOptions -
Method Summary
-
Field Details
-
blockSize
private final int blockSize -
compressionLevel
private final int compressionLevel -
maxEncodeSize
private final int maxEncodeSize -
DEFAULT
Default implementation ofZstdOptionswith{compressionLevel(int)} set toZstdConstants.DEFAULT_COMPRESSION_LEVEL,ZstdConstants.DEFAULT_BLOCK_SIZE,ZstdConstants.DEFAULT_MAX_ENCODE_SIZE
-
-
Constructor Details
-
ZstdOptions
ZstdOptions(int compressionLevel, int blockSize, int maxEncodeSize) Create a newZstdOptions- Parameters:
compressionLevel- specifies the level of the compressionblockSize- is used to calculate the compressionLevelmaxEncodeSize- specifies the size of the largest compressed object
-
-
Method Details
-
compressionLevel
public int compressionLevel() -
blockSize
public int blockSize() -
maxEncodeSize
public int maxEncodeSize()
-