public class CubicCongestionControl extends java.lang.Object implements CongestionControl
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
initialWindowLength()
Called by
DriverConductor to initialise window length for a new PublicationImage. |
void |
onRttMeasurement(long now,
long rttInNanos,
java.net.InetSocketAddress srcAddress)
Called by
Receiver on reception of an RTT Measurement. |
long |
onTrackRebuild(long now,
long newConsumptiopnPosition,
long lastSmPosition,
long hwmPosition,
long startingRebuildPosition,
long endingRebuildPosition,
boolean lossOccurred)
Called by
DriverConductor upon execution of PublicationImage.trackRebuild(long, long) to
pass on current status. |
boolean |
shouldMeasureRtt(long now)
Polled by
Receiver to determine when to initiate an RTT measurement to a Sender. |
public boolean shouldMeasureRtt(long now)
CongestionControlReceiver to determine when to initiate an RTT measurement to a Sender.shouldMeasureRtt in interface CongestionControlnow - in nanosecondspublic void onRttMeasurement(long now,
long rttInNanos,
java.net.InetSocketAddress srcAddress)
CongestionControlReceiver on reception of an RTT Measurement.onRttMeasurement in interface CongestionControlnow - in nanosecondsrttInNanos - to the SendersrcAddress - of the Senderpublic long onTrackRebuild(long now,
long newConsumptiopnPosition,
long lastSmPosition,
long hwmPosition,
long startingRebuildPosition,
long endingRebuildPosition,
boolean lossOccurred)
CongestionControlDriverConductor upon execution of PublicationImage.trackRebuild(long, long) to
pass on current status.
The return value must be packed using CongestionControlUtil.packOutcome(int, boolean).onTrackRebuild in interface CongestionControlnow - in nanosecondsnewConsumptiopnPosition - of the SubscriberslastSmPosition - of the imagehwmPosition - of the imagestartingRebuildPosition - of the rebuildendingRebuildPosition - of the rebuildlossOccurred - during rebuildpublic int initialWindowLength()
CongestionControlDriverConductor to initialise window length for a new PublicationImage.initialWindowLength in interface CongestionControlpublic void close()
close in interface CongestionControlclose in interface java.lang.AutoCloseableCopyright © 2014-2017 Real Logic Ltd. All Rights Reserved.