| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final QuicCongestionController | |
| private static final long | |
| private Deadline | |
| private long | |
| private final QuicRttEstimator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | QuicPacer(QuicRttEstimator
the RTT estimator rttEstimator, QuicCongestionController the congestion controller congestionController)Create a QUIC pacer for the given RTT estimator and congestion controller |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if pacer quota not hit yet, false otherwiseReturns true if pacer quota not hit yet, false otherwise. |
| public void | |
| public Deadline | Returns: the deadline when quota will increase to two packetsReturns the deadline when quota will increase to two packets. |
| public void | updateQuota(Deadline
current time now)Update quota based on time since the last call to this method and whether appLimited() was called or not. |
| appLimited | back to summary |
|---|---|
| private boolean appLimited | |
| congestionController | back to summary |
|---|---|
| private final QuicCongestionController congestionController | |
| DEFAULT_TIMER_FREQ_HZ | back to summary |
|---|---|
| private static final long DEFAULT_TIMER_FREQ_HZ | |
| lastUpdate | back to summary |
|---|---|
| private Deadline lastUpdate | |
| quota | back to summary |
|---|---|
| private long quota | |
| rttEstimator | back to summary |
|---|---|
| private final QuicRttEstimator rttEstimator | |
| TIMER_FREQ_HZ | back to summary |
|---|---|
| private static final long TIMER_FREQ_HZ | |
| QuicPacer | back to summary |
|---|---|
| public QuicPacer(QuicRttEstimator rttEstimator, QuicCongestionController congestionController) Create a QUIC pacer for the given RTT estimator and congestion controller
| |
| appLimited | back to summary |
|---|---|
| public void appLimited() called to indicate that the flow is app-limited. Alters the behavior of the following updateQuota call. | |
| canSend | back to summary |
|---|---|
| public boolean canSend() Returns true if pacer quota not hit yet, false otherwise.
| |
| packetSent | back to summary |
|---|---|
| public void packetSent(int packetBytes) called to indicate that a packet was sent
| |
| twoPacketDeadline | back to summary |
|---|---|
| public Deadline twoPacketDeadline() Returns the deadline when quota will increase to two packets.
| |
| updateQuota | back to summary |
|---|---|
| public void updateQuota(Deadline now) Update quota based on time since the last call to this method and whether appLimited() was called or not.
| |