| Modifier and Type | Class and Description |
|---|---|
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private Deadline | |
| private static final long | |
| private static final long | |
| private long | |
| public static final long | |
| public static final Duration | |
| public static final Duration | |
| private long | |
| private long | |
| private long | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | consumeRttSample(long
time between when packet was sent
and ack was received, in microseconds latestRttMicros, long ack delay received in ack frame, decoded to microseconds ackDelayMicros, Deadline time at which latestRttMicros was calculated now)Update the estimator with latest RTT sample. |
| public synchronized Duration | Returns: the amount of time to wait for acknowledgement of a sent packet, excluding max ack delayReturns the amount of time to wait for acknowledgement of a sent packet, excluding max ack delay. |
| public synchronized Duration | Returns: time threshold for time-based loss detectionReturns time threshold for time-based loss detection. |
| public synchronized long | |
| public synchronized long | |
| public synchronized boolean | |
| public synchronized void | |
| public synchronized QuicRttEstimator. |
| firstSample | back to summary |
|---|---|
| private Deadline firstSample | |
| GRANULARITY_MICROS | back to summary |
|---|---|
| private static final long GRANULARITY_MICROS | |
| INITIAL_RTT | back to summary |
|---|---|
| private static final long INITIAL_RTT | |
| latestRttMicros | back to summary |
|---|---|
| private long latestRttMicros | |
| MAX_PTO_BACKOFF | back to summary |
|---|---|
| public static final long MAX_PTO_BACKOFF | |
| MAX_PTO_BACKOFF_TIMEOUT | back to summary |
|---|---|
| public static final Duration MAX_PTO_BACKOFF_TIMEOUT | |
| MIN_PTO_BACKOFF_TIMEOUT | back to summary |
|---|---|
| public static final Duration MIN_PTO_BACKOFF_TIMEOUT | |
| minRttMicros | back to summary |
|---|---|
| private long minRttMicros | |
| ptoBackoffFactor | back to summary |
|---|---|
| private long ptoBackoffFactor | |
| rttSampleCount | back to summary |
|---|---|
| private long rttSampleCount | |
| rttVarMicros | back to summary |
|---|---|
| private long rttVarMicros | |
| smoothedRttMicros | back to summary |
|---|---|
| private long smoothedRttMicros | |
| QuicRttEstimator | back to summary |
|---|---|
| public QuicRttEstimator() | |
| consumeRttSample | back to summary |
|---|---|
| public synchronized void consumeRttSample(long latestRttMicros, long ackDelayMicros, Deadline now) Update the estimator with latest RTT sample. Use only samples where: - the largest acknowledged PN is newly acknowledged - at least one of the newly acked packets is ack-eliciting
| |
| getBasePtoDuration | back to summary |
|---|---|
| public synchronized Duration getBasePtoDuration() Returns the amount of time to wait for acknowledgement of a sent packet, excluding max ack delay. See RFC 9002 section 6.1.2
| |
| getLossThreshold | back to summary |
|---|---|
| public synchronized Duration getLossThreshold() Returns time threshold for time-based loss detection. See RFC 9002 section 6.1.2
| |
| getPtoBackoff | back to summary |
|---|---|
| public synchronized long getPtoBackoff() | |
| increasePtoBackoff | back to summary |
|---|---|
| public synchronized long increasePtoBackoff() | |
| isMinBackoffTimeoutExceeded | back to summary |
|---|---|
| public synchronized boolean isMinBackoffTimeoutExceeded() | |
| resetPtoBackoff | back to summary |
|---|---|
| public synchronized void resetPtoBackoff() | |
| state | back to summary |
|---|---|
| public synchronized QuicRttEstimator. | |
| Modifier and Type | Field and Description |
|---|---|
| private final long | latestRttMicros
Record Component accessed by latestRttMicros(). |
| private final long | minRttMicros
Record Component accessed by minRttMicros(). |
| private final long | rttSampleCount
Record Component accessed by rttSampleCount(). |
| private final long | rttVarMicros
Record Component accessed by rttVarMicros(). |
| private final long | smoothedRttMicros
Record Component accessed by smoothedRttMicros(). |
| Access | Constructor and Description |
|---|---|
| public | QuicRttEstimatorState(long latestRttMicros, long minRttMicros, long smoothedRttMicros, long rttVarMicros, long rttSampleCount)
|
| 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 final int | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| latestRttMicros | back to summary |
|---|---|
| private final long latestRttMicros Record Component accessed by latestRttMicros(). | |
| minRttMicros | back to summary |
|---|---|
| private final long minRttMicros Record Component accessed by minRttMicros(). | |
| rttSampleCount | back to summary |
|---|---|
| private final long rttSampleCount Record Component accessed by rttSampleCount(). | |
| rttVarMicros | back to summary |
|---|---|
| private final long rttVarMicros Record Component accessed by rttVarMicros(). | |
| smoothedRttMicros | back to summary |
|---|---|
| private final long smoothedRttMicros Record Component accessed by smoothedRttMicros(). | |
| QuicRttEstimatorState | back to summary |
|---|---|
| public QuicRttEstimatorState(long latestRttMicros, long minRttMicros, long smoothedRttMicros, long rttVarMicros, long rttSampleCount) | |
| 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).
| |
| 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 | |
| latestRttMicros | back to summary |
|---|---|
| public long latestRttMicros() Record Component getter of latestRttMicros. | |
| minRttMicros | back to summary |
|---|---|
| public long minRttMicros() Record Component getter of minRttMicros. | |
| rttSampleCount | back to summary |
|---|---|
| public long rttSampleCount() Record Component getter of rttSampleCount. | |
| rttVarMicros | back to summary |
|---|---|
| public long rttVarMicros() Record Component getter of rttVarMicros. | |
| smoothedRttMicros | back to summary |
|---|---|
| public long smoothedRttMicros() Record Component getter of smoothedRttMicros. | |
| 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. | |