Package io.netty.handler.codec.http3
Interface QpackDecoderStateSyncStrategy
-
public interface QpackDecoderStateSyncStrategy
A strategy that determines when to send acknowledgment of new table entries on the QPACK decoder stream.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static QpackDecoderStateSyncStrategy
ackEachInsert()
Returns aQpackDecoderStateSyncStrategy
that will acknowledge each entry added viaentryAdded(int)
unless a priorsectionAcknowledged(int)
call has implicitly acknowledged the addition.boolean
entryAdded(int insertCount)
When a header field entry is added to the decoder dynamic table.void
sectionAcknowledged(int requiredInsertCount)
Callback when an encoded header field section is decoded successfully by the decoder.
-
-
-
Method Detail
-
sectionAcknowledged
void sectionAcknowledged(int requiredInsertCount)
Callback when an encoded header field section is decoded successfully by the decoder.- Parameters:
requiredInsertCount
- for the encoded field section.
-
entryAdded
boolean entryAdded(int insertCount)
When a header field entry is added to the decoder dynamic table.- Parameters:
insertCount
- for the entry.- Returns:
true
if an insert count increment decoder instruction should be sent.
-
ackEachInsert
static QpackDecoderStateSyncStrategy ackEachInsert()
Returns aQpackDecoderStateSyncStrategy
that will acknowledge each entry added viaentryAdded(int)
unless a priorsectionAcknowledged(int)
call has implicitly acknowledged the addition.- Returns:
- A
QpackDecoderStateSyncStrategy
that will acknowledge each entry added viaentryAdded(int)
unless a priorsectionAcknowledged(int)
call has implicitly acknowledged the addition.
-
-