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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decompressorbuild(ByteBufAllocator allocator)ZstdDecompressor.BuildermaxWindowLog(int maxWindowLog)Set the upper bound on the acceptedWindow_Log.
-
-
-
Method Detail
-
maxWindowLog
@UnstableApi public ZstdDecompressor.Builder maxWindowLog(int 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
public Decompressor build(ByteBufAllocator allocator) throws DecompressionException
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-
-