Package io.grpc.util
Class MultiChildLoadBalancer.ChildLbState
java.lang.Object
io.grpc.util.MultiChildLoadBalancer.ChildLbState
- Enclosing class:
MultiChildLoadBalancer
This represents the state of load balancer children. Each endpoint (represented by an
EquivalentAddressGroup or EDS string) will have a separate ChildLbState which in turn will
have a single child LoadBalancer created from the provided factory.
A ChildLbStateHelper is the glue between ChildLbState and the helpers associated with the petiole policy above and the PickFirstLoadBalancer's helper below.
If you wish to store additional state information related to each subchannel, then extend this class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classChildLbStateHelper is the glue between ChildLbState and the helpers associated with the petiole policy above and the PickFirstLoadBalancer's helper below. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LoadBalancer.SubchannelPickerprivate ConnectivityStateprivate final Objectprivate final LoadBalancerprivate LoadBalancer.ResolvedAddresses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ConnectivityStatefinal EquivalentAddressGroupgetEag()final ObjectgetKey()final LoadBalancergetLb()protected final voidsetCurrentPicker(LoadBalancer.SubchannelPicker newPicker) protected final voidsetCurrentState(ConnectivityState newState) protected final voidsetResolvedAddresses(LoadBalancer.ResolvedAddresses newAddresses) protected voidshutdown()Override for unique behavior such as delayed shutdowns of subchannels.toString()
-
Field Details
-
key
-
resolvedAddresses
-
lb
-
currentState
-
currentPicker
-
-
Constructor Details
-
ChildLbState
-
-
Method Details