Package net.i2p.util
Interface BandwidthEstimator
- All Known Implementing Classes:
SimpleBandwidthEstimator
,SimpleBandwidthEstimator
,SyntheticREDQueue
public interface BandwidthEstimator
A Westwood bandwidth estimator
- Since:
- 0.9.46 consolidated from streaming and udp in 0.9.50
-
Method Summary
Modifier and Type Method Description void
addSample(int acked)
Records an arriving ack.float
getBandwidthEstimate()
-
Method Details
-
addSample
void addSample(int acked)Records an arriving ack.- Parameters:
acked
- how many bytes or packets were acked with this ack
-
getBandwidthEstimate
float getBandwidthEstimate()- Returns:
- the current bandwidth estimate in bytes/ms or packets/ms.
-