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.
Builds congestion controllers, one per path. Factories are immutable and may be shared.
-
Method Summary
Modifier and TypeMethodDescriptionbuild(long now, int currentMtu) A new controller.static ControllerFactoryThe default, CUBIC with its default configuration, as quinn uses.
-
Method Details
-
build
A new controller.- Parameters:
now- the current time, in nanosecondscurrentMtu- the path's current maximum UDP payload size- Returns:
- the controller
-
defaultFactory
The default, CUBIC with its default configuration, as quinn uses.- Returns:
CubicConfig.DEFAULT
-