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 protected
ChildLbStateHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LoadBalancer.Helper
delegate()
Returns the underlying helper.void
updateBalancingState(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:
updateBalancingState
in classForwardingLoadBalancerHelper
-
delegate
protected LoadBalancer.Helper delegate()
Description copied from class:ForwardingLoadBalancerHelper
Returns the underlying helper.- Specified by:
delegate
in classForwardingLoadBalancerHelper
-
-