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 Modifier Constructor Description protectedChildLbStateHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
protected LoadBalancer.Helper delegate()
Description copied from class:ForwardingLoadBalancerHelperReturns the underlying helper.- Specified by:
delegatein classForwardingLoadBalancerHelper
-
-