Interface ControllerFactory

All Known Implementing Classes:
BbrConfig, CubicConfig, NewRenoConfig
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 ControllerFactory
Builds congestion controllers, one per path. Factories are immutable and may be shared.
  • Method Summary

    Modifier and Type
    Method
    Description
    build(long now, int currentMtu)
    A new controller.
    The default, CUBIC with its default configuration, as quinn uses.
  • Method Details

    • build

      Controller build(long now, int currentMtu)
      A new controller.
      Parameters:
      now - the current time, in nanoseconds
      currentMtu - the path's current maximum UDP payload size
      Returns:
      the controller
    • defaultFactory

      static ControllerFactory defaultFactory()
      The default, CUBIC with its default configuration, as quinn uses.
      Returns:
      CubicConfig.DEFAULT