Package io.grpc.util
Class MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
java.lang.Object
io.grpc.LoadBalancer.Helper
io.grpc.util.ForwardingLoadBalancerHelper
io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
- Enclosing class:
MultiChildLoadBalancer.ChildLbState
protected class MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
extends ForwardingLoadBalancerHelper
ChildLbStateHelper is the glue between ChildLbState and the helpers associated with the
petiole policy above and the PickFirstLoadBalancer's helper below.
The ChildLbState updates happen during updateBalancingState. Otherwise, it is doing simple forwarding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LoadBalancer.Helperdelegate()Returns the underlying helper.voidupdateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) Update current state and picker for this child and then useMultiChildLoadBalancer.updateOverallBalancingState()for the parent LB.Methods inherited from class io.grpc.util.ForwardingLoadBalancerHelper
createOobChannel, createOobChannel, createResolvingOobChannel, createResolvingOobChannelBuilder, createResolvingOobChannelBuilder, createSubchannel, getAuthority, getChannelCredentials, getChannelLogger, getChannelTarget, getMetricRecorder, getNameResolverArgs, getNameResolverRegistry, getScheduledExecutorService, getSynchronizationContext, getUnsafeChannelCredentials, ignoreRefreshNameResolutionCheck, refreshNameResolution, toString, updateOobChannelAddresses, updateOobChannelAddresses
-
Constructor Details
-
ChildLbStateHelper
protected ChildLbStateHelper()
-
-
Method Details
-
updateBalancingState
public void updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) Update current state and picker for this child and then useMultiChildLoadBalancer.updateOverallBalancingState()for the parent LB.- Overrides:
updateBalancingStatein classForwardingLoadBalancerHelper
-
delegate
Description copied from class:ForwardingLoadBalancerHelperReturns the underlying helper.- Specified by:
delegatein classForwardingLoadBalancerHelper
-