| Modifier and Type | Class and Description |
|---|---|
| public static class | AckFrame.
A builder that allows to incrementally build the AckFrame that will need to be sent, as new packets are received. |
| private static class | |
| public static record | AckFrame.
An ACK range, composed of a gap and a range. |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final int | |
| private final List | |
| private static final int | |
| private final boolean | |
| private final long | |
| private final long | |
| private final long | |
| private final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | AckFrame(ByteBuffer
a buffer containing the ACK frame buffer, int the frame type read from the buffer type)Reads an |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public LongStream | |
| public long | |
| public List | Returns: the list ofAckRange where the first ack range
has a gap of 0 and a range corresponding to
the First ACK Range.The ack ranges. |
| private int | |
| public long | Returns: the ECN-CE count from this frame or -1 if not presentReturns the ECN-CE count from this frame or -1 if not present. |
| public long | Returns: the ECT0 count from this frame or -1 if not presentReturns the ECT0 count from this frame or -1 if not present. |
| public long | Returns: the ECT1 count from this frame or -1 if not presentReturns the ECT1 count from this frame or -1 if not present. |
| public void | encode(ByteBuffer buffer)
Implements abstract jdk. Encode this QUIC Frame into given ByteBuffer |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | getTypeField()
Overrides jdk. Returns the type field that was / should be encoded. |
| public int | |
| public boolean | isAckEliciting()
Overrides jdk. Returns true if this frame is ACK-eliciting. |
| public boolean | Returns: true if this frame contains an acknowledgment for the given packet numbera packet number packetNumber)Returns true if this frame contains an acknowledgment for the given packet number. |
| private static boolean | |
| public boolean | Returns: true if the given range is acknowledged by this framethe first packet in the range, inclusive first, long the last packet in the range, inclusive last)Returns true if the given range is acknowledged by this frame. |
| private static boolean | isRangeAcknowledged(long largestAcknowledged, List<AckFrame.
|
| public long | Returns: largest packet number acknowledged by this frameReturns largest packet number acknowledged by this frame. |
| public static long | Returns: the largest packet acknowledged by anACK frame contained in the
given packet, or -1L if the packet
contains no ACK framea packet that may contain an packet)ACK frameReturns the largest packet acknowledged by an
|
| private String | |
| public int | size()
Implements abstract jdk. Returns the minimum number of bytes needed to encode this frame. |
| public long | Returns: the smallest packet number acknowledged by thisAckFrameReturns the smallest packet number acknowledged by this |
| private static long | |
| public String | toString()
Overrides jdk. Returns a string representation of the object. |
| public AckFrame | Returns: a newAckFrame identical to this one, but
with the given ackDelaythe delay sending the Ack Frame ackDelay)Returns a new |
| ackDelay | back to summary |
|---|---|
| private final long ackDelay | |
| ackRangeCount | back to summary |
|---|---|
| private final int ackRangeCount | |
| ackRanges | back to summary |
|---|---|
| private final List<AckFrame. | |
| COUNTS_PRESENT | back to summary |
|---|---|
| private static final int COUNTS_PRESENT | |
| countsPresent | back to summary |
|---|---|
| private final boolean countsPresent | |
| ecnCECount | back to summary |
|---|---|
| private final long ecnCECount | |
| ect0Count | back to summary |
|---|---|
| private final long ect0Count | |
| ect1Count | back to summary |
|---|---|
| private final long ect1Count | |
| largestAcknowledged | back to summary |
|---|---|
| private final long largestAcknowledged | |
| size | back to summary |
|---|---|
| private final int size | |
| AckFrame | back to summary |
|---|---|
| pack-priv AckFrame(ByteBuffer buffer, int type) throws QuicTransportException Reads an
| |
| AckFrame | back to summary |
|---|---|
| public AckFrame(long largestAcknowledged, long ackDelay, List<AckFrame. Creates the short formed ACK frame with no count totals | |
| AckFrame | back to summary |
|---|---|
| public AckFrame(long largestAcknowledged, long ackDelay, List<AckFrame. Creates the long formed ACK frame with count totals | |
| ackDelay | back to summary |
|---|---|
| public long ackDelay() The ACK delay | |
| acknowledged | back to summary |
|---|---|
public LongStream acknowledged()
| |
| ackRangeCount | back to summary |
|---|---|
| public long ackRangeCount() Returns the number of ack ranges.
This corresponds to
| |
| ackRanges | back to summary |
|---|---|
| public List The ack ranges. First element is an actual range relative to highest acknowledged packet number. Second (if present) is a gap and a range following that gap, and so on until the last. | |
| computeSize | back to summary |
|---|---|
| private int computeSize() | |
| ecnCECount | back to summary |
|---|---|
| public long ecnCECount() Returns the ECN-CE count from this frame or -1 if not present.
| |
| ect0Count | back to summary |
|---|---|
| public long ect0Count() Returns the ECT0 count from this frame or -1 if not present.
| |
| ect1Count | back to summary |
|---|---|
| public long ect1Count() Returns the ECT1 count from this frame or -1 if not present.
| |
| encode | back to summary |
|---|---|
| public void encode(ByteBuffer buffer) Implements abstract jdk. Doc from jdk. Encode this QUIC Frame into given ByteBuffer
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getTypeField | back to summary |
|---|---|
| public long getTypeField() Overrides jdk. Doc from jdk. Returns the type field that was / should be encoded. This is the frame type with possibly some additional bits set, depending on the frame.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAckEliciting | back to summary |
|---|---|
| public boolean isAckEliciting() Overrides jdk. Doc from jdk. Returns true if this frame is ACK-eliciting.
A frame is ACK-eliciting if it is anything
other than
| |
| isAcknowledging | back to summary |
|---|---|
| public boolean isAcknowledging(long packetNumber) Returns true if this frame contains an acknowledgment for the given packet number.
| |
| isAcknowledging | back to summary |
|---|---|
| private static boolean isAcknowledging(long largestAcknowledged, List<AckFrame. | |
| isRangeAcknowledged | back to summary |
|---|---|
| public boolean isRangeAcknowledged(long first, long last) Returns true if the given range is acknowledged by this frame.
| |
| isRangeAcknowledged | back to summary |
|---|---|
| private static boolean isRangeAcknowledged(long largestAcknowledged, List<AckFrame. | |
| largestAcknowledged | back to summary |
|---|---|
| public long largestAcknowledged() Returns largest packet number acknowledged by this frame.
| |
| largestAcknowledgedInPacket | back to summary |
|---|---|
| public static long largestAcknowledgedInPacket(QuicPacket packet) Returns the largest packet acknowledged by an
| |
| prettyRanges | back to summary |
|---|---|
| private String prettyRanges() | |
| size | back to summary |
|---|---|
| public int size() Implements abstract jdk. Doc from jdk. Returns the minimum number of bytes needed to encode this frame.
| |
| smallestAcknowledged | back to summary |
|---|---|
| public long smallestAcknowledged() Returns the smallest packet number acknowledged by this
| |
| smallestAcknowledged | back to summary |
|---|---|
| private static long smallestAcknowledged(long largestAcknowledged, List<AckFrame. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides jdk. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| withAckDelay | back to summary |
|---|---|
| public AckFrame withAckDelay(long ackDelay) Returns a new
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv List | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AckFrameBuilder(AckFrame
the frame)AckFrame to initialize this builder with.
Must not be null.A builder initialize from the content of an AckFrame. |
| Modifier and Type | Method and Description |
|---|---|
| public AckFrame. | |
| private AckFrame. | |
| private AckFrame. | |
| public AckFrame. | Returns: this builderthe packet number packetNumber)Adds the given packet number to the list of ack ranges. |
| public AckFrame | |
| public AckFrame. | Returns: this builderthe index after which ranges should be dropped. index)Drops all instances of |
| public AckFrame. | Returns: this builderthe smallest packet number that
should be acknowledged by this
largestAckAcked)AckFrame.Drops all acks for packet whose number is smaller
than the given |
| private AckFrame. | |
| private long | |
| public AckFrame. | |
| public AckFrame. | |
| public AckFrame. | |
| public long | |
| public boolean | Returns: true if the given packet number is already acknowledged by this buildera packet number packetNumber)Returns true if the given packet number is already acknowledged by this builder. |
| public boolean | Returns: true if this builder contains no ACK yetReturns true if this builder contains no ACK yet. |
| public int | Returns: the number of ACK ranges in this builder, including the fake first ACK rangeReturns the number of ACK ranges in this builder, including the fake first ACK range. |
| public static AckFrame. | |
| public long | Returns: the smallest packet number acknowledged by thisAckFrameReturns the smallest packet number acknowledged by this |
| ackDelay | back to summary |
|---|---|
| pack-priv long ackDelay | |
| ackRanges | back to summary |
|---|---|
| pack-priv List<AckFrame. | |
| ecnCECount | back to summary |
|---|---|
| pack-priv long ecnCECount | |
| ect0Count | back to summary |
|---|---|
| pack-priv long ect0Count | |
| ect1Count | back to summary |
|---|---|
| pack-priv long ect1Count | |
| largestAckAcked | back to summary |
|---|---|
| pack-priv long largestAckAcked | |
| largestAcknowledged | back to summary |
|---|---|
| pack-priv long largestAcknowledged | |
| AckFrameBuilder | back to summary |
|---|---|
| public AckFrameBuilder() An empty builder. | |
| AckFrameBuilder | back to summary |
|---|---|
| public AckFrameBuilder(AckFrame frame) A builder initialize from the content of an AckFrame.
| |
| ackDelay | back to summary |
|---|---|
| public AckFrame. Sets the ack delay.
| |
| acknowledgeFirstPacket | back to summary |
|---|---|
| private AckFrame. | |
| acknowledgeLargerPacket | back to summary |
|---|---|
| private AckFrame. | |
| addAck | back to summary |
|---|---|
| public AckFrame. Adds the given packet number to the list of ack ranges. If the packet is already being acknowledged by this frame, do nothing.
| |
| build | back to summary |
|---|---|
| public AckFrame build() Builds an
| |
| dropAckRangesAfter | back to summary |
|---|---|
| public AckFrame. Drops all instances of
| |
| dropAcksBefore | back to summary |
|---|---|
| public AckFrame. Drops all acks for packet whose number is smaller
than the given
| |
| dropIfSmallerThan | back to summary |
|---|---|
| private AckFrame. | |
| dropRangesIfAfter | back to summary |
|---|---|
| private long dropRangesIfAfter(int ackIndex) | |
| ecnCECount | back to summary |
|---|---|
| public AckFrame. Sets the ecnCECount. Passing -1 unsets the ecnCEOcount.
| |
| ect0Count | back to summary |
|---|---|
| public AckFrame. Sets the ect0Count. Passing -1 unsets the ectOcount.
| |
| ect1Count | back to summary |
|---|---|
| public AckFrame. Sets the ect1Count. Passing -1 unsets the ect1count.
| |
| getLargestAckAcked | back to summary |
|---|---|
| public long getLargestAckAcked() | |
| isAcknowledging | back to summary |
|---|---|
| public boolean isAcknowledging(long packetNumber) Returns true if the given packet number is already acknowledged by this builder.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns true if this builder contains no ACK yet.
| |
| length | back to summary |
|---|---|
| public int length() Returns the number of ACK ranges in this builder, including the fake first ACK range.
| |
| ofNullable | back to summary |
|---|---|
| public static AckFrame. | |
| smallestAcknowledged | back to summary |
|---|---|
| public long smallestAcknowledged() Returns the smallest packet number acknowledged by this
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AckFrame | |
| private final Iterator | |
| private long | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public int | characteristics()
Implements java. Returns a set of characteristics of this Spliterator and its elements. |
| public long | estimateSize()
Implements java. Returns an estimate of the number of elements that would be
encountered by a |
| public boolean | tryAdvance(LongConsumer action)
Implements java. If a remaining element exists, performs the given action on it,
returning |
| public Spliterator. | trySplit()
Implements java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. |
| ackFrame | back to summary |
|---|---|
| pack-priv final AckFrame ackFrame | |
| ackRangeIterator | back to summary |
|---|---|
| private final Iterator<AckFrame. | |
| largest | back to summary |
|---|---|
| private long largest | |
| pn | back to summary |
|---|---|
| private long pn | |
| smallest | back to summary |
|---|---|
| private long smallest | |
| AckFrameSpliterator | back to summary |
|---|---|
| pack-priv AckFrameSpliterator(AckFrame ackFrame) | |
| ackAndDecId | back to summary |
|---|---|
| private boolean ackAndDecId(LongConsumer action) | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(LongConsumer action) Implements java. Doc from java. If a remaining element exists, performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| trySplit | back to summary |
|---|---|
| public Spliterator. Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| public static final AckFrame. | |
| 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 long | |
| public final int | |
| public static AckFrame. | |
| public long | |
| public int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| gap | back to summary |
|---|---|
| private final long gap Record Component accessed by gap(). | |
| INITIAL | back to summary |
|---|---|
| public static final AckFrame. | |
| range | back to summary |
|---|---|
| private final long range Record Component accessed by range(). | |
| AckRange | back to summary |
|---|---|
| public AckRange(long gap, long range) | |
| 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).
| |
| gap | back to summary |
|---|---|
| public long gap() Record Component getter of gap. | |
| 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 | |
| of | back to summary |
|---|---|
| public static AckFrame. | |
| range | back to summary |
|---|---|
| public long range() Record Component getter of range. | |
| size | back to summary |
|---|---|
| public int size() | |
| 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. | |