Record Class ServiceConfig.LoadBalancingConfig.WeightedRoundRobinLoadBalancingConfig
java.lang.Object
java.lang.Record
org.springframework.boot.grpc.client.autoconfigure.ServiceConfig.LoadBalancingConfig.WeightedRoundRobinLoadBalancingConfig
- Record Components:
blackoutPeriod- must report load metrics continuously for at least this long before the endpoint weight will be usedweightExpirationPeriod- if has not reported load metrics in this long, then we stop using the reported weightoutOfBandReportingPeriod- load reporting interval to request from the serverenableOutOfBandLoadReport- whether to enable out-of-band utilization reporting collection from the endpointsweightUpdatePeriod- how often endpoint weights are recalculatederrorUtilizationPenalty- multiplier used to adjust endpoint weights with the error rate calculated as eps/qps
- Enclosing class:
ServiceConfig.LoadBalancingConfig
public static record ServiceConfig.LoadBalancingConfig.WeightedRoundRobinLoadBalancingConfig(Duration blackoutPeriod, Duration weightExpirationPeriod, Duration outOfBandReportingPeriod, Boolean enableOutOfBandLoadReport, Duration weightUpdatePeriod, Float errorUtilizationPenalty)
extends Record
'weighted round robin' load balancing.
- Since:
- 4.1.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedRoundRobinLoadBalancingConfig(Duration blackoutPeriod, Duration weightExpirationPeriod, Duration outOfBandReportingPeriod, Boolean enableOutOfBandLoadReport, Duration weightUpdatePeriod, Float errorUtilizationPenalty) Creates an instance of aWeightedRoundRobinLoadBalancingConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblackoutPeriodrecord component.Returns the value of theenableOutOfBandLoadReportrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorUtilizationPenaltyrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoutOfBandReportingPeriodrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theweightExpirationPeriodrecord component.Returns the value of theweightUpdatePeriodrecord component.
-
Constructor Details
-
WeightedRoundRobinLoadBalancingConfig
public WeightedRoundRobinLoadBalancingConfig(Duration blackoutPeriod, Duration weightExpirationPeriod, Duration outOfBandReportingPeriod, Boolean enableOutOfBandLoadReport, Duration weightUpdatePeriod, Float errorUtilizationPenalty) Creates an instance of aWeightedRoundRobinLoadBalancingConfigrecord class.- Parameters:
blackoutPeriod- the value for theblackoutPeriodrecord componentweightExpirationPeriod- the value for theweightExpirationPeriodrecord componentoutOfBandReportingPeriod- the value for theoutOfBandReportingPeriodrecord componentenableOutOfBandLoadReport- the value for theenableOutOfBandLoadReportrecord componentweightUpdatePeriod- the value for theweightUpdatePeriodrecord componenterrorUtilizationPenalty- the value for theerrorUtilizationPenaltyrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
blackoutPeriod
Returns the value of theblackoutPeriodrecord component.- Returns:
- the value of the
blackoutPeriodrecord component
-
weightExpirationPeriod
Returns the value of theweightExpirationPeriodrecord component.- Returns:
- the value of the
weightExpirationPeriodrecord component
-
outOfBandReportingPeriod
Returns the value of theoutOfBandReportingPeriodrecord component.- Returns:
- the value of the
outOfBandReportingPeriodrecord component
-
enableOutOfBandLoadReport
Returns the value of theenableOutOfBandLoadReportrecord component.- Returns:
- the value of the
enableOutOfBandLoadReportrecord component
-
weightUpdatePeriod
Returns the value of theweightUpdatePeriodrecord component.- Returns:
- the value of the
weightUpdatePeriodrecord component
-
errorUtilizationPenalty
Returns the value of theerrorUtilizationPenaltyrecord component.- Returns:
- the value of the
errorUtilizationPenaltyrecord component
-