class AimdRateControl
extends java.lang.Object
Constructor and Description |
---|
AimdRateControl(@NotNull DiagnosticContext diagnosticContext) |
Modifier and Type | Method and Description |
---|---|
long |
getFeedBackInterval() |
long |
getLatestEstimate() |
boolean |
isTimeToReduceFurther(long timeNow,
long incomingBitrateBps)
Returns true if the bitrate estimate hasn't been changed for
more than an RTT, or if the incomingBitrate is more than 5%
above the current estimate.
|
boolean |
isValidEstimate()
Returns true if there is a valid estimate of the incoming
bitrate, false otherwise.
|
void |
reset() |
void |
setEstimate(long bitrateBps,
long nowMs) |
void |
setMinBitrate(long minBitrateBps) |
void |
setRtt(long rtt) |
void |
update(RateControlInput input,
long nowMs) |
long |
updateBandwidthEstimate(long nowMs) |
public AimdRateControl(@NotNull @NotNull DiagnosticContext diagnosticContext)
public long getFeedBackInterval()
public long getLatestEstimate()
public boolean isTimeToReduceFurther(long timeNow, long incomingBitrateBps)
timeNow
- incomingBitrateBps
- public boolean isValidEstimate()
public void reset()
public void setEstimate(long bitrateBps, long nowMs)
public void setMinBitrate(long minBitrateBps)
public void setRtt(long rtt)
public void update(RateControlInput input, long nowMs)
public long updateBandwidthEstimate(long nowMs)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.