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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(ByteBufAllocator allocator) maxWindowLog(int maxWindowLog) Set the upper bound on the acceptedWindow_Log.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
maxWindowLog
private int maxWindowLog
-
-
Constructor Details
-
Builder
Builder()
-
-
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
-