Package io.grpc.xds
Class WeightedRoundRobinLoadBalancer.WeightedChildLbState
java.lang.Object
io.grpc.util.MultiChildLoadBalancer.ChildLbState
io.grpc.xds.WeightedRoundRobinLoadBalancer.WeightedChildLbState
- Enclosing class:
WeightedRoundRobinLoadBalancer
final class WeightedRoundRobinLoadBalancer.WeightedChildLbState
extends io.grpc.util.MultiChildLoadBalancer.ChildLbState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class
(package private) final class
Nested classes/interfaces inherited from class io.grpc.util.MultiChildLoadBalancer.ChildLbState
io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private long
private final Set
<WeightedRoundRobinLoadBalancer.WrrSubchannel> private double
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedChildLbState
(Object key, io.grpc.LoadBalancerProvider policyProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubchannel
(WeightedRoundRobinLoadBalancer.WrrSubchannel wrrSubchannel) protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
getOrCreateOrcaListener
(float errorUtilizationPenalty) private double
getWeight
(AtomicInteger staleEndpoints, AtomicInteger notYetUsableEndpoints) void
removeSubchannel
(WeightedRoundRobinLoadBalancer.WrrSubchannel wrrSubchannel) Methods inherited from class io.grpc.util.MultiChildLoadBalancer.ChildLbState
getCurrentPicker, getCurrentState, getEag, getKey, getLb, getResolvedAddresses, setCurrentPicker, setCurrentState, setResolvedAddresses, shutdown, toString
-
Field Details
-
subchannels
-
lastUpdated
private volatile long lastUpdated -
nonEmptySince
private volatile long nonEmptySince -
weight
private volatile double weight -
orcaReportListener
-
-
Constructor Details
-
WeightedChildLbState
-
-
Method Details
-
createChildHelper
protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper createChildHelper()- Overrides:
createChildHelper
in classio.grpc.util.MultiChildLoadBalancer.ChildLbState
-
getWeight
-
addSubchannel
-
getOrCreateOrcaListener
public WeightedRoundRobinLoadBalancer.WeightedChildLbState.OrcaReportListener getOrCreateOrcaListener(float errorUtilizationPenalty) -
removeSubchannel
-