private static final class DelegatingDecompressorFrameListener.Http2Decompressor
extends java.lang.Object
DATA
frame decompression.Modifier and Type | Field and Description |
---|---|
private int |
compressed |
private int |
decompressed |
private EmbeddedChannel |
decompressor |
Constructor and Description |
---|
Http2Decompressor(EmbeddedChannel decompressor) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
consumeBytes(int streamId,
int decompressedBytes)
Determines the ratio between
numBytes and decompressed . |
(package private) EmbeddedChannel |
decompressor()
Responsible for taking compressed bytes in and producing decompressed bytes.
|
(package private) void |
incrementCompressedBytes(int delta)
Increment the number of bytes received prior to doing any decompression.
|
(package private) void |
incrementDecompressedBytes(int delta)
Increment the number of bytes after the decompression process.
|
private final EmbeddedChannel decompressor
private int compressed
private int decompressed
Http2Decompressor(EmbeddedChannel decompressor)
EmbeddedChannel decompressor()
void incrementCompressedBytes(int delta)
void incrementDecompressedBytes(int delta)
int consumeBytes(int streamId, int decompressedBytes) throws Http2Exception
numBytes
and decompressed
.
This ratio is used to decrement decompressed
and
compressed
.streamId
- the stream IDdecompressedBytes
- The number of post-decompressed bytes to return to flow controlHttp2Exception