public StaticWindowCongestionControl( final long registrationId, final UdpChannel udpChannel, final int streamId, final int sessionId, final int termLength, final int senderMtuLength, final NanoClock clock, final MediaDriver.Context context, final CountersManager countersManager) { ccOutcome = CongestionControlUtil.packOutcome(Math.min(termLength / 2, context.initialWindowLength()), false); }
lossFound(scanOutcome)); final int window = CongestionControlUtil.receiverWindowLength(ccOutcome); final long threshold = CongestionControlUtil.positionThreshold(window); if (CongestionControlUtil.shouldForceStatusMessage(ccOutcome) || ((timeOfLastStatusMessageScheduleNs + statusMessageTimeoutNs) - nowNs < 0) || (minSubscriberPosition > (nextSmPosition + threshold)))
public int initialWindowLength() { return CongestionControlUtil.receiverWindowLength(ccOutcome); } }
public int initialWindowLength() { return CongestionControlUtil.receiverWindowLength(ccOutcome); } }
lossFound(scanOutcome)); final int windowLength = CongestionControlUtil.receiverWindowLength(ccOutcome); final long threshold = CongestionControlUtil.positionThreshold(windowLength); if (CongestionControlUtil.shouldForceStatusMessage(ccOutcome) || ((timeOfLastStatusMessageScheduleNs + statusMessageTimeoutNs) - nowNs < 0) || (minSubscriberPosition > (nextSmPosition + threshold)))
windowIndicator.setOrdered(window); return packOutcome(window, forceStatusMessage);
public int initialWindowLength() { return CongestionControlUtil.receiverWindowLength(ccOutcome); } }
lossFound(scanOutcome)); final int windowLength = CongestionControlUtil.receiverWindowLength(ccOutcome); final long threshold = CongestionControlUtil.positionThreshold(windowLength); if (CongestionControlUtil.shouldForceStatusMessage(ccOutcome) || ((timeOfLastStatusMessageScheduleNs + statusMessageTimeoutNs) - nowNs < 0) || (minSubscriberPosition > (nextSmPosition + threshold)))
when(congestionControl.onTrackRebuild( anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyBoolean())) .thenReturn(CongestionControlUtil.packOutcome(INITIAL_WINDOW_LENGTH, false)); when(congestionControl.initialWindowLength()).thenReturn(INITIAL_WINDOW_LENGTH);
public StaticWindowCongestionControl( final long registrationId, final UdpChannel udpChannel, final int streamId, final int sessionId, final int termLength, final int senderMtuLength, final NanoClock clock, final MediaDriver.Context context, final CountersManager countersManager) { ccOutcome = CongestionControlUtil.packOutcome(Math.min(termLength / 2, context.initialWindowLength()), false); }
public StaticWindowCongestionControl( final long registrationId, final UdpChannel udpChannel, final int streamId, final int sessionId, final int termLength, final int senderMtuLength, final NanoClock clock, final MediaDriver.Context context, final CountersManager countersManager) { ccOutcome = CongestionControlUtil.packOutcome(Math.min(termLength / 2, context.initialWindowLength()), false); }
windowIndicator.setOrdered(window); return packOutcome(window, forceStatusMessage);
windowIndicator.setOrdered(window); return packOutcome(window, forceStatusMessage);