@PublicEvolving public class AIMDScalingStrategy extends Object implements ScalingStrategy<Integer>
| Modifier and Type | Class and Description |
|---|---|
static class |
AIMDScalingStrategy.AIMDScalingStrategyBuilder
Builder for
AIMDScalingStrategy. |
| Constructor and Description |
|---|
AIMDScalingStrategy(int increaseRate,
double decreaseFactor,
int rateThreshold) |
| Modifier and Type | Method and Description |
|---|---|
static AIMDScalingStrategy.AIMDScalingStrategyBuilder |
builder(int rateThreshold) |
Integer |
scaleDown(Integer currentRate)
Returns the scaled down value.
|
Integer |
scaleUp(Integer currentRate)
Returns the scaled up value.
|
public AIMDScalingStrategy(int increaseRate,
double decreaseFactor,
int rateThreshold)
public Integer scaleUp(Integer currentRate)
ScalingStrategyscaleUp in interface ScalingStrategy<Integer>currentRate - currentValuepublic Integer scaleDown(Integer currentRate)
ScalingStrategyscaleDown in interface ScalingStrategy<Integer>currentRate - currentValue@PublicEvolving public static AIMDScalingStrategy.AIMDScalingStrategyBuilder builder(int rateThreshold)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.