Package io.aeron.driver
Class DefaultCongestionControlSupplier
java.lang.Object
io.aeron.driver.DefaultCongestionControlSupplier
- All Implemented Interfaces:
CongestionControlSupplier
Supplier of congestion control algorithms which is aware of channel URI params otherwise defaults to
StaticWindowCongestionControl
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(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 newCongestionControl
instance.
-
Constructor Details
-
DefaultCongestionControlSupplier
public DefaultCongestionControlSupplier()
-
-
Method Details
-
newInstance
public 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 newCongestionControl
instance.- Specified by:
newInstance
in interfaceCongestionControlSupplier
- 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.
-