net.i2p.util

## Interface BandwidthEstimator

- All Known Implementing Classes:
    SimpleBandwidthEstimator, SimpleBandwidthEstimator, SyntheticREDQueue

      public interface BandwidthEstimator

  A Westwood bandwidth estimator

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addSample(int acked)` Records an arriving ack.
    `float` | `getBandwidthEstimate()`

- - ### Method Detail

    - #### 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.