Interface CongestionControlSupplier

All Known Implementing Classes:
CubicCongestionControlSupplier, DefaultCongestionControlSupplier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CongestionControlSupplier
Supplier of CongestionControl algorithm implementations to be used by receivers.
  • Method Details

    • newInstance

      CongestionControl newInstance(long registrationId, UdpChannel udpChannel, int streamId, int sessionId, int termLength, int senderMtuLength, InetSocketAddress controlAddress, InetSocketAddress sourceAddress, NanoClock nanoClock, MediaDriver.Context context, CountersManager countersManager)
      Return a new CongestionControl instance.
      Parameters:
      registrationId - for the publication image.
      udpChannel - for the publication image.
      streamId - for the publication image.
      sessionId - for the publication image.
      termLength - for the publication image.
      senderMtuLength - for the publication image.
      controlAddress - for the publication image.
      sourceAddress - for the publication image.
      nanoClock - for the precise timing.
      context - for configuration options applied in the driver.
      countersManager - for the driver.
      Returns:
      congestion control instance ready for immediate usage.