| Modifier and Type | Class and Description |
|---|---|
| public class | |
| public static record | Encoder.
Descriptor of entries range referenced from a field lines section. |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ReentrantLock | |
| private long | |
| private final DecoderInstructionsReader | |
| private final DynamicTable | |
| private static final AtomicLong | |
| private final QueuingStreamPair | |
| private long | |
| private final ReentrantReadWriteLock | |
| private final ConcurrentMap | |
| private final QPACK. | |
| private long | |
| private final InsertionPolicy | |
| private final QPACK. | |
| private static final Set | |
| private final TablesIndexer | |
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| public | Encoder(InsertionPolicy policy, QPACK.
supplier of the encoder unidirectional stream pair streamPairs,Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| private void | |
| public void | configure(ConnectionSettings
the peer settings peerSettings)Configures encoder according to the settings received from the peer. |
| public List | |
| public QueuingStreamPair | |
| public void | |
| private ByteBuffer | |
| public void | |
| public void | header(Encoder.
the encoding context context,the name name, CharSequence the value value, boolean whether the value is sensitive sensitive, long the count of received entries known to a peer decoder or
knownReceivedCount)-1 to skip the dynamic table entry index check during header encoding.Sets up the given header |
| public long | |
| public Encoder. | |
| public HeaderFrameWriter | |
| private void | processDecoderAcks(ByteBuffer
data sent by the peer's decoder buffer)This method is called when the peer decoder sends data on the peer's decoder stream |
| public void | |
| public void | setTableCapacity(long
a non-negative long capacity)Sets the capacity of the encoder's dynamic table and notifies the decoder by issuing "Set Dynamic Table Capacity" instruction. |
| public Encoder. | |
| private Encoder. | |
| private void | |
| private void |
| blockedStreamsCounterLock | back to summary |
|---|---|
| private final ReentrantLock blockedStreamsCounterLock | |
| blockedStreamsInFlight | back to summary |
|---|---|
| private long blockedStreamsInFlight | |
| decoderInstructionsReader | back to summary |
|---|---|
| private final DecoderInstructionsReader decoderInstructionsReader | |
| dynamicTable | back to summary |
|---|---|
| private final DynamicTable dynamicTable | |
| ENCODERS_IDS | back to summary |
|---|---|
| private static final AtomicLong ENCODERS_IDS | |
| encoderStreams | back to summary |
|---|---|
| private final QueuingStreamPair encoderStreams | |
| knownReceivedCount | back to summary |
|---|---|
| private long knownReceivedCount | |
| krcLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock krcLock | |
| liveContextReferences | back to summary |
|---|---|
| private final ConcurrentMap<Long, ConcurrentSkipListSet<Long>> liveContextReferences | |
| logger | back to summary |
|---|---|
| private final QPACK. | |
| maxBlockedStreams | back to summary |
|---|---|
| private long maxBlockedStreams | |
| policy | back to summary |
|---|---|
| private final InsertionPolicy policy | |
| qpackErrorHandler | back to summary |
|---|---|
| private final QPACK. | |
| SENSITIVE_HEADER_NAMES | back to summary |
|---|---|
| private static final Set<String> SENSITIVE_HEADER_NAMES | |
| tablesIndexer | back to summary |
|---|---|
| private final TablesIndexer tablesIndexer | |
| unacknowledgedSections | back to summary |
|---|---|
| private final ConcurrentMap<Long, Queue<Encoder. | |
| Encoder | back to summary |
|---|---|
| public Encoder(InsertionPolicy policy, QPACK. Constructs an Dynamic table capacity values has to be agreed between decoder and encoder out-of-band, e.g. by a protocol that uses QPACK. Maximum dynamic table capacity is determined by the value of SETTINGS_QPACK_MAX_TABLE_CAPACITY HTTP/3 setting sent by the decoder side (see 3.2.3. Maximum Dynamic Table Capacity). An encoder informs the decoder of a change to the dynamic table capacity using the "Set Dynamic Table Capacity" instruction (see 4.3.1. Set Dynamic Table Capacity)
| |
| blockedStreamsCount | back to summary |
|---|---|
| pack-priv long blockedStreamsCount() | |
| cleanupStreamData | back to summary |
|---|---|
| private void cleanupStreamData(long streamId) | |
| configure | back to summary |
|---|---|
| public void configure(ConnectionSettings peerSettings) Configures encoder according to the settings received from the peer.
| |
| encodeHeaders | back to summary |
|---|---|
| public List | |
| encoderStreams | back to summary |
|---|---|
| public QueuingStreamPair encoderStreams() | |
| generateFieldLineSectionPrefix | back to summary |
|---|---|
| public void generateFieldLineSectionPrefix(Encoder. | |
| getByteBuffer | back to summary |
|---|---|
| private ByteBuffer getByteBuffer(int size) | |
| header | back to summary |
|---|---|
| public void header(Encoder. | |
| header | back to summary |
|---|---|
| public void header(Encoder. Sets up the given header If the Fixates
| |
| knownReceivedCount | back to summary |
|---|---|
| public long knownReceivedCount() | |
| newEncodingContext | back to summary |
|---|---|
| public Encoder. | |
| newHeaderFrameWriter | back to summary |
|---|---|
| public HeaderFrameWriter newHeaderFrameWriter() | |
| processDecoderAcks | back to summary |
|---|---|
| private void processDecoderAcks(ByteBuffer buffer) This method is called when the peer decoder sends data on the peer's decoder stream
| |
| registerUnackedFieldLineSection | back to summary |
|---|---|
| public void registerUnackedFieldLineSection(long streamId, Encoder. | |
| setTableCapacity | back to summary |
|---|---|
| public void setTableCapacity(long capacity) Sets the capacity of the encoder's dynamic table and notifies the decoder by issuing "Set Dynamic Table Capacity" instruction. The value has to be agreed between decoder and encoder out-of-band, e.g. by a protocol that uses QPACK (see 4.3.1. Set Dynamic Table Capacity).
| |
| unackedFieldLineSectionsRange | back to summary |
|---|---|
| public Encoder. | |
| unackedFieldLineSectionsRange | back to summary |
|---|---|
| private Encoder. | |
| updateKrcInsertCountIncrement | back to summary |
|---|---|
| private void updateKrcInsertCountIncrement(long increment) | |
| updateKrcSectionAck | back to summary |
|---|---|
| private void updateKrcSectionAck(long streamId) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | |
| pack-priv boolean | |
| pack-priv final EncoderInstructionsWriter | |
| pack-priv long | |
| pack-priv long | |
| pack-priv final ConcurrentSkipListSet | |
| pack-priv final long | |
| pack-priv final HeaderFrameWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| public Encoder. | |
| public void | |
| public void | |
| public FieldSectionPrefix | |
| public TableEntry |
| base | back to summary |
|---|---|
| pack-priv final long base | |
| blockedDecoderExpected | back to summary |
|---|---|
| pack-priv boolean blockedDecoderExpected | |
| encoderInstructionsWriter | back to summary |
|---|---|
| pack-priv final EncoderInstructionsWriter encoderInstructionsWriter | |
| maxIndex | back to summary |
|---|---|
| pack-priv long maxIndex | |
| minIndex | back to summary |
|---|---|
| pack-priv long minIndex | |
| referencedIndexes | back to summary |
|---|---|
| pack-priv final ConcurrentSkipListSet<Long> referencedIndexes | |
| streamId | back to summary |
|---|---|
| pack-priv final long streamId | |
| writer | back to summary |
|---|---|
| pack-priv final HeaderFrameWriter writer | |
| EncodingContext | back to summary |
|---|---|
| public EncodingContext(long streamId, long base, HeaderFrameWriter writer) | |
| canReferenceNewEntry | back to summary |
|---|---|
| private boolean canReferenceNewEntry() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| evictionLimit | back to summary |
|---|---|
| public Encoder. | |
| referenceEntry | back to summary |
|---|---|
| public void referenceEntry(TableEntry tableEntry) | |
| registerSessionReference | back to summary |
|---|---|
| public void registerSessionReference(long absoluteEntryId) | |
| sectionPrefix | back to summary |
|---|---|
| public FieldSectionPrefix sectionPrefix() | |
| tryInsertEntry | back to summary |
|---|---|
| public TableEntry tryInsertEntry(TableEntry entry) | |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public final int | |
| public long | |
| public long | |
| public static Encoder. | |
| public static Encoder. | |
| public Encoder. | |
| public Encoder. | |
| public boolean | |
| public static Encoder. | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| max | back to summary |
|---|---|
| private final long max Record Component accessed by max(). maximum entry id referenced from a field lines section | |
| min | back to summary |
|---|---|
| private final long min Record Component accessed by min(). minimum entry id referenced from a field lines section | |
| SectionReference | back to summary |
|---|---|
| public SectionReference(long min, long max) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| fullyAcked | back to summary |
|---|---|
| public boolean fullyAcked(long knownReceiveCount) | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| max | back to summary |
|---|---|
| public long max() Record Component getter of max.
| |
| min | back to summary |
|---|---|
| public long min() Record Component getter of min.
| |
| noReferences | back to summary |
|---|---|
| public static Encoder. | |
| of | back to summary |
|---|---|
| public static Encoder. | |
| reduce | back to summary |
|---|---|
| public Encoder. | |
| reduce | back to summary |
|---|---|
| public Encoder. | |
| referencesEntries | back to summary |
|---|---|
| public boolean referencesEntries() | |
| singleReference | back to summary |
|---|---|
| public static Encoder. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | onSectionAck(long streamId)
Implements jdk.
|
| public void | onStreamCancel(long streamId)
Implements jdk.
|
| TableUpdatesCallback | back to summary |
|---|---|
| private TableUpdatesCallback() | |
| onInsertCountIncrement | back to summary |
|---|---|
| public void onInsertCountIncrement(long increment) Implements jdk.
| |
| onSectionAck | back to summary |
|---|---|
| public void onSectionAck(long streamId) Implements jdk.
| |
| onStreamCancel | back to summary |
|---|---|
| public void onStreamCancel(long streamId) Implements jdk.
| |