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 class
ChildLbStateHelper is the glue between ChildLbState and the helpers associated with the petiole policy above and the PickFirstLoadBalancer's helper below. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ConnectivityState
final Object
getKey()
final LoadBalancer
getLb()
protected final void
setCurrentPicker
(LoadBalancer.SubchannelPicker newPicker) protected final void
setCurrentState
(ConnectivityState newState) protected void
shutdown()
Override for unique behavior such as delayed shutdowns of subchannels.toString()