Class ZstdDecompressor.Builder
java.lang.Object
io.netty.handler.codec.compression.Decompressor.AbstractDecompressorBuilder
io.netty.handler.codec.compression.ZstdDecompressor.Builder
- Enclosing class:
ZstdDecompressor
@UnstableApi
public static final class ZstdDecompressor.Builder
extends Decompressor.AbstractDecompressorBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ByteBufAllocator allocator) maxWindowLog(int maxWindowLog) Set the upper bound on the acceptedWindow_Log.
-
Method Details
-
maxWindowLog
Set the upper bound on the acceptedWindow_Log.The window log size bounds the memory usage of the sliding window for ZSTD frame decompression. Frames declaring a larger window will be rejected to bound the memory the decompressor may allocate per stream.
- Parameters:
maxWindowLog- upper bound on theWindow_Logfield of incoming frames; must be in[10, 31]- Returns:
- This builder
-
build
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-